Jump to content

No rule to make target... Please help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
FritoBandito

FritoBandito

    Newbie

  • Members
  • Pip
  • 7 posts
OK I get this error and I am confuzed

[Build Error] No rule to make target 'EO.o' needed by Sample.exe. Stop
I am using bloodshed 4.9.9.2 and i know it has to do with the make file.

EO.o would be related to EO.lib which is a library i need but didnt make.
I do have Sample.c and Sample.h

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

  [Linker error] undefined reference to `SuperFunction'

In my project I have included:
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 mark the EO.lib file for compilation I get [build error] error 255

#2
soku11

soku11

    Newbie

  • Members
  • PipPip
  • 12 posts
Im not an expert, but I think that *.lib files should be only linked. That means you shouldnt add it to your project, but to additional library to link. It can cause this build error. Your compiler tries to do a EO.o object from the EO.lib file, which is not a standard C/C++ files. But I can be wrong :) Try it and write the news.

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
A compile error means that the program will not even run, so there is a direct problem with the code. Try removing it from the project and just linking it, like soku11 says.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums