Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Workbench Compile started failing for no reason!
Workbench Compile started failing for no reason! [message #146568] Tue, 07 June 2005 09:48 Go to next message
Eclipse UserFriend
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 #146590 is a reply to message #146568] Tue, 07 June 2005 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.wrigley.zen.co.uk

I am going mad....

I haven't changed anything ... but now all the projects are compiling ok
again.

I really don't understand this. I haven't rebooted (that was the first
thing I had tried) or anything else.
Re: Workbench Compile started failing for no reason! [message #146808 is a reply to message #146568] Mon, 13 June 2005 21:05 Go to previous messageGo to next message
Sean Evoy is currently offline Sean EvoyFriend
Messages: 195
Registered: July 2009
Senior Member
DW,
If you are still worried, my guess is that something changed the path
variable so that Gnu make was not found first. The makefiles generated
by the managed builder rely on extensions in Gnu make that other make
utilities do not support.

Sean

DW wrote:
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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....
Previous Topic:Cannot build a C++ project
Next Topic:DDT?
Goto Forum:
  


Current Time: Thu Jun 27 20:38:05 GMT 2024

Powered by FUDForum. Page generated in 0.02721 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top