Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google site




Thread: Makefile help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 09-24-2009
TriKri TriKri is offline
Registered User
 

Join Date: Aug 2008
Posts: 4
Sorry, I just realized that SDL was causing that problem, since I copied the wrong folder by mistake when installing SDL development package (bin folder instead of lib).

Anyway, I corrected that, and that error disappeared. However, I got this error instead:


Code:

mingw32-make -k 
g++ main.o -Wall -I.. -lmingw32 -lSDLmain -lSDL -mwindows -o image_test.exe #Link .
g++: #Link: No such file or directory
mingw32-make: *** [image_test.exe] Error 1
mingw32-make: Target `all' not remade because of errors.

Looks like it has problems with the comment? Why? Shouldn't it totally ignore the comment?

Once again, I am a newbie when it comes to makefiles, this one I basically just tried to mimic from an already existing makefile from another project!

Edit: The strange this is that, if I remove the comment "#Link .", it DOES compile, but it leaves the following message:


Code:

mingw32-make -k 
rm main.o #Remove .o
process_begin: CreateProcess(NULL, rm main.o #Remove .o, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [all] Error 2

CreateProcess failed? And "make (e=2): The system cannot find the file specified", what does this mean?

---------- Post updated at 08:39 AM ---------- Previous update was at 07:57 AM ----------

Now I got it! I'm not programming in Unix/Linux actually, I'm programming in Windows, using mingw. What I forgot is that rm in not a normal windows shell command. I had to install msys! When I installed it and added the bin folder to my path in windows, everything worked perfectly well!

Last edited by TriKri; 09-24-2009 at 03:22 AM..