Workbench Compile started failing for no reason! [message #146568] |
Tue, 07 June 2005 09:48 |
Eclipse User |
|
|
|
Originally posted by: david.wrigley.zen.co.uk
I have a number of projects in my workbench (Version: 3.0.1)
All have been compiling quite nicely and producing executeables.
Today, for no apparent reason, all fail to compile with an error message
"no file name for `-include' makefile ... etc". This points to the
makefile line
"-include $(SUBDIRS:%=%/subdir.mk)"
Subdir.mk does exist, and appears to contain the appropriate lines...
CPP_SRCS += \
${addprefix $(ROOT)/, \
main.cpp \
}
something has changed on my system/setup but I haven't a clue where to
look.
Any thoughts?
tia
DW
|
|
|
|
|
Re: Workbench Compile started failing for no reason! [message #147234 is a reply to message #146808] |
Thu, 23 June 2005 12:18 |
Eclipse User |
|
|
|
Originally posted by: david.wrigley.zen.co.uk
I thought the problem had gone away, and after several days of use, it is
back again.
Looking at the console output, rather than error output, the result of
build is =
'Building target: myprogram.exe'
g++ -Lc:/wxwin/lib/gcc_lib -Lc:/wxwin/contrib/lib -mwindows -o
myprogram.exe "C:\eclipse\workspace\main\Debug\myprogram_rc.o"
-lwxmsw25d_core -lwxbase25d -lstdc++ -lwxregexd -lwxpngd -lwxjpegd
-lwxzlibd -lwxtiffd -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32
-lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32
-luuid
c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw3 2.a(main.o)(.text+0x97):main.c:
undefined reference to `WinMain@16'
make: *** [myprogram.exe] Error 1
I have not touched 'myprogram', one day it builds, the next this problem.
I checked my environment + paths and everything seems to be fine...
PATH= ...;c:\mingw\bin;... more stuff
but DOS environment does not appear to have any Eclipse settings, I am not
sure if it should have. (but again I have not myself changed anything here)
|
|
|
Re: Workbench Compile started failing for no reason! [message #147251 is a reply to message #147234] |
Thu, 23 June 2005 13:13 |
Eclipse User |
|
|
|
Originally posted by: david.wrigley.zen.co.uk
It can be quite depressing really.
I have just been staring at the code... and realised that windows.h was
not declared anywhere.
I added that, and the programs are now building.
I can't understand why they were building in the first place though...
unless it was picking up precompiled headers.
I am obviously too stupid to be doing this stuff....
|
|
|
Powered by
FUDForum. Page generated in 0.03117 seconds