User forums > Help

re: I hate compilers

(1/3) > >>

Anonymous:
Hi Yianni, et. al.

Let me start out by saying that I've been evaluating a bunch of these free IDE's cause, well, we won't get into the slipping value of my college education. I just wanted to say that I really appreciate the effort you've put forth here. I'm guessing that you are independantly wealthy since you have the time to put something like this together, and give it away. Three cheers for the open source community.

For my part though, I've been a day or so, now trying to get my dern little project to the form of a debug executable in the code::blocks environ (it works in Dev-C++/MinGW). If anyone could help me diagnose the following compiler output, I would appreciate tremendously. I'm not quite sure how to interpret the make err:

Project   : Project2
Compiler  : GNU GCC Compiler (using GNU "make")
Directory : D:\CodingStuff\Isolation Booth\
--------------------------------------------------------------------------------
Cleaning target "default"...
process_begin: CreateProcess((null), rm -f project2.exe .objs/component.o .objs/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe: *** [clean_default] Error 2
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

~~~~~~ end listing ~~~~~~~~~~

Glad to hear that I'm not the only person who's spent time coding for money, and still has these problems... I think it comes from being spoon-fed by uncle bill at msft.

Thanks in advance for any help,

Johnny

Urxae:
This is probably because you don't have MSYS installed (or don't have it in your PATH), so you don't have 'rm'.

Quick fix: In Settings -> Configure plugins -> Compiler, tab Custom variables, edit 'RM = rm -f' so it says 'RM = del /f'

Longer fix: Install MSYS. :D

Anonymous:
Thanks, I just saw it in a post from a couple weeks ago. I changed the RM value, and now get the following:

Project   : Project2
Compiler  : GNU GCC Compiler (using GNU "make")
Directory : D:\CodingStuff\Isolation Booth\
--------------------------------------------------------------------------------
Cleaning target "default"...
Invalid switch - "component.o".
mingw32-make.exe: *** [clean_default] Error 1
Process terminated with status 1 (0 minutes, 2 seconds)
0 errors, 0 warnings

~~~~~~~end listing~~~~~~~~~

Also, in Settings -> Configure plugins -> Compiler I keep telling it to use gdb.exe for my debugger. The value is not persistant. Each time I open the page, the value is blank again.

Urxae:
Looks like you missed an 'f' at the end there, that would produce that error.
About gdb, I have the same problem...

Anonymous:
Hmm,... Now I'm really confused. I installed the MSYS deally in a subdir of MinGW, and put it's /bin dir in the path. The next attempt to compile didn't apear to like the RM = del /f, so I changed it back. Now I got the following output:

Project   : Project2
Compiler  : GNU GCC Compiler (using GNU "make")
Directory : D:\CodingStuff\Isolation Booth\
--------------------------------------------------------------------------------
Cleaning target default...
Compiling component.cpp...
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [.objs/component.o] Error 258 (ignored)
In file included from component.cpp:3:
component.h:23: warning: `class CComponent' has virtual functions but
   non-virtual destructor
C:\DOCUME~1\jessica\LOCALS~1\Temp/cc8ybaaa.o(.text+0x2de): In function `ZN10CComponent14QueryInterfaceERK5_GUIDPPv':
D:/CodingStuff/Isolation Booth/component.cpp:40: undefined reference to `IID_IUnknown'
C:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16'
mingw32-make.exe: *** [.objs/component.o] Error 1
Process terminated with status 1 (10 minutes, 4 seconds)
2 errors, 1 warnings

~~~~~ end listing ~~~~~~

fortunately, the compile took ten minutes, allowing me plenty of time to beat my head on the wall...

Navigation

[0] Message Index

[#] Next page

Go to full version