Eclipse + WINAVR 2010 problem

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is a project which I've been working on but I'm getting too many errors in Eclipse. (undefined reference to ...)
I don't know what else to do. All Include files are in project and no file is missing. So why am I getting this error?
What is wrong with eclipse? Because it works in AVR Studio 4 and 5
I really appreciate it if somebody test it too.

(After extract go to "main" folder and try to import "ex03_webserver" folder into Eclipse using File->Import menu)

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
All Include files are in project
But are all the .c files added to the makefile?

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Koshchi wrote:
Quote:
All Include files are in project
But are all the .c files added to the makefile?

I added all .c files to the project too(using IDE).
Should I have to edit makefile too?
I thought it creates a makefile automatically. It sucks. Now what am I suppose to do?

This is not my first time using Eclipse and I never created or edited a makefile on my own. I'm not sure this is the problem. However how should I edit makefile?

P.S: One more thing. Eclipse creates makefiles automatically every time I Build a project. So it would overwrite my own makefile. Wouldn't it?!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I added all .c files to the project too(using IDE).
Should I have to edit makefile too?
I have no idea how Eclipse works or how it uses makefiles. But the error you gave indicates that the .c files were not compiled.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
However how should I edit makefile?

If you have avreclipse plug-in then there is no need to txt edit makefile because every possible option is picked with GUI.

And, you should tell eclipse where ALL source files are.
Seems that the only ones you mentioned were the ones in
./main/ex03_webserver/ folder. And what about the rest of the source files?

No RSTDISBL, no fun!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Brutte wrote:
Quote:
However how should I edit makefile?

If you have avreclipse plug-in then there is no need to txt edit makefile because every possible option is picked with GUI.

And, you should tell eclipse where ALL source files are.
Seems that the only ones you mentioned were the ones in
./main/ex03_webserver/ folder. And what about the rest of the source files?

Yes I'm using avreclipse plug-in.
Your right. most of the c sources files are in another folders. But I can navigate through all of them using Eclipse. I thought it's enough!
How can I tell eclipse where all source files are ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
But I can navigate through all of them using Eclipse.

Sure, that is what project explorer is for. But it will not automagically know which files are to be compiled for your project or which folders are to be searched for headers!
Quote:
How can I tell eclipse where all source files

..and include folders are?
Many ways. For example your project preferences has the "C/C++ General"->"Settings"->"Paths and Symbols" with some tabs. One of them is called "Includes" and one of them is named "Source Location" etc.

This is exactly the same for all CDT based projects so once you learn that, you can make it with any x86/ARM/AVR project.

No RSTDISBL, no fun!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The first thing we need to see to tell what goes wrong is the build output. Copy that (as text) and post it here along with the names of at least one of the source files that contains functions that you get unresolved references to.

Quote:
It sucks.

You have the options of resolving the problems, or stop using it.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The first thing we need to see to tell what goes wrong is the build output. Copy that (as text) and post it here along with the names of at least one of the source files that contains functions that you get unresolved references to.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]