I get this error
I am using newest version of bloodshed and i know it has to do with the make file.. however i dont know how to fix itCode:[Build Error] No rule to make target 'EO.o' needed by Sample.exe. Stop
I get this error
I am using newest version of bloodshed and i know it has to do with the make file.. however i dont know how to fix itCode:[Build Error] No rule to make target 'EO.o' needed by Sample.exe. Stop
by newest do you mean 4.9.9.2 (which is a few years old anyways)? i have this version of dev-c++ too, but i dont really use the IDE, just the compiler it came with, which should be GCC if you chose that option.
if you didnt edit any files you dont think you should have, then you shouldnt have any problem. i would recommend just starting a new project and add your .h/.c files to it manually and try it again. if theres still an error i dont know what the problem would be. at this point i would recommend to just use the command line when your actually compiling, or get a different IDE and use your current or different compiler.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
well actually ... the I have EO.lib which is a library i didnt make but need.
and I do have Sample.c and Sample.h
I am using Dev C++ 4.9.9.2
In Project->Project Options->Files
I have checked the EO.lib -> Include In Linking
If i dont check that, I get many other errors such as
Code:[Linker error] undefined reference to `SuperFunction'
Last edited by chico1st; 05-16-2008 at 06:16 AM.
Ok so since I am using this library maybe that is causing my problems.
Here is an image of my project (im desperate and grasping at straws right now, I cant do anything if i cant compile my code)
Actually I dont know how to post a picture.
But included in my project are:
Sample Project
---sample.c
---sample.h
---EO.lib
---Useful.h
There is also the sample.dsp and sample.dsw, makefile.win, sample.layout files in the folder which I ahve not included in my project
If I include the EO.lib file for compilation I get [build error] error 255
Last edited by chico1st; 05-16-2008 at 09:54 AM.
Don't compile the lib. Just link it.
if i just link it i still get the [Build Error] No rule to make target 'EO.o' needed by Sample.exe. Stop
I am assuming there is something wrong with the library, I am going to go harass the person who made it.
As robwhit suggests, you should probably remove EO.lib from the project's included files. Then it will use EO.lib at the link stage.
how will i know to use EO.lib if I dont include it?
A project will have two (or more) sets of files:
Files that need compiling
Files that you link with.
The "files you link with" are usually specified in a "link" stage, rather than in the "what components to compile". Different IDE's do this slightly differently, but look for a "link" tab somewhere in your project settings and I suspect you will find a "additional libraries" or "additional components" part that you can fill in with that.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
what does it mean if I get this?
But if i pass the wrong variable type to func the compiler detects this and tells me the prototype. It is obviously linked somehow. But why does it give undefined reference.Code:[Linker error] undefined reference to `func'
I did what you said MATSP, but now my compiler will tell me prototypes but i get this.
That tells you that you are calling a func, which has no actual function declared.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
you mean in the library there is no code for func?
But it is properly linked with the library?
what are the other possibilities?
the person who made this library will take me at least a day to get a hold of
EDIT: and do i need to include a
bit of code at the top?Code:int func((void **)Array);
Last edited by chico1st; 05-21-2008 at 11:54 AM.