No rule to make target "Player.o" needed by project [message #1782821] |
Fri, 02 March 2018 01:06  |
Eclipse User |
|
|
|
I'm trying to generate random numbers between 1 and 8 and then process them statistically.
My monitor is currently on my desk. My window is currently unbroken. Those are about to change.
So I thought I would ask for help. I have gotten Eclipse to compile and run Hello World. I am importing a project that used to work in MS Visual Studio 2010. I am getting this error:
make: *** No rule to make target 'Player.o', needed by 'VanillaWoW'. Stop.
I have looked at SO and Google for 2 hours and cannot figure this out. Everything seems to be the same as the HelloWorld program that works. The makefile is not in the same directory as the source, however, as some SO topics recommended, but I don't think that's the issue because the working program has them in the same locations. It looks like this:
Erg I can't use links yet.
ibb co slash cBcAqx
I don't understand how it's doing this because when I do a clean build it's clearly doing something because it spits out all the compiler warnings that Boost 1.66 has deprecated uses of class auto_ptr. Also, I need to learn how to squelch those if possible without squelching everything. One SO topic said something about using -isystem but I don't know how to change the automatic build options from -I.
In C/C++ General -> Paths and Symbols -> Source Location I have /VanillaWoW and /VanillaWoW/Source3 listed. I'm using the Cygwin GCC GNU Make Builder
If I use the CDT Internal Builder it says:
g++ -o VanillaWoW "Source3\\Player.o" "Source3\\Tier.o" "Source3\\stdafx.o"
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../lib/libcygwin.a(libcmain.o): In function `main':
/usr/src/debug/cygwin-2.10.0-1/winsup/cygwin/lib/libcmain.c:37: undefined reference to `WinMain'
/usr/src/debug/cygwin-2.10.0-1/winsup/cygwin/lib/libcmain.c:37:(.text.startup+0x94): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `WinMain'
collect2: error: ld returned 1 exit status
There is a .cpp file for every .h file. There are only 3.
When I build it makes a .d and .o file in the debug folder for every .cpp and .h file I have.
I have Cygwin and MingW and a couple libraries or whatever installed. I don't believe I have MSYS installed.
Oh the makefile is automatically generated and it and all the code are at: https:// docs. google.com/document/d/185sOHxk3wKAnl6N0oCSvlJZB7WUTY8gEtZCsLIr1q0o/edit?usp=sharing
I also posted this on SO but it was closed as duplicate and a link to a technobabble mega thread was provided, as if I could figure out which of the 27 possible fixes apply to my situation.
So what will fix this and what builder should I be using?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04423 seconds