Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » undefined reference to - error build(undefined reference to - error build)
undefined reference to - error build [message #1765498] Sun, 11 June 2017 08:23 Go to next message
Efim Ginter is currently offline Efim GinterFriend
Messages: 6
Registered: September 2016
Junior Member
the compiler does not build the project, because he does not see the code files


what could be the problem
  • Attachment: 1.jpg
    (Size: 402.88KB, Downloaded 259 times)
  • Attachment: 2.jpg
    (Size: 409.28KB, Downloaded 193 times)
  • Attachment: 3.jpg
    (Size: 417.17KB, Downloaded 181 times)
Re: undefined reference to - error build [message #1765500 is a reply to message #1765498] Sun, 11 June 2017 11:00 Go to previous messageGo to next message
David VavraFriend
Messages: 722
Registered: October 2012
Senior Member
Those are link errors and not compile errors.
You are missing the library containing the wizchip functions.
You will need to inform the linker by using the tool settings tab for the linker libraries.
Assuming you are allowing Eclipse to generate the makefiles go to
Project --> Properties --> Settungs --> Tool Settings Tab --> C++ Linker --> Libraries
Use the top pane to set the library name and the bottom pane to the library path.

Alternately, you could set the full path and name as an Other object in
Project --> Properties --> Settungs --> Tool Settings Tab --> C++ Linker --> Miscellaneous

If you have your own makefile, edit the link step appropriately.


If you don't know what this means then you should find a tutorial on linking with gcc.
It's a rather detailed subject out of scope for this forum.
You are using a variant of gcc to compile and link your code so most any gcc tutorial will do.

Re: undefined reference to - error build [message #1765501 is a reply to message #1765500] Sun, 11 June 2017 11:09 Go to previous messageGo to next message
Efim Ginter is currently offline Efim GinterFriend
Messages: 6
Registered: September 2016
Junior Member
David VavraFriend Thanks

the problem is solved so
in main.cpp the code files are connected so


extern "C" {
#include "wizchip_conf.h"
#include "socket.h"
#include "w5500.h"
}

and then it works
Re: undefined reference to - error build [message #1781401 is a reply to message #1765500] Tue, 06 February 2018 18:49 Go to previous message
Peter Goodricke is currently offline Peter GoodrickeFriend
Messages: 1
Registered: February 2018
Junior Member
Hi
I am using eclipse and am having the same link error if I select the project and the menu Project then properties there are no tabs only Run/Debug settings has this changed in the new version of eclipse?
Previous Topic:Eclipse CDT with C/C++ Makefile
Next Topic:Wrongly marked as unresolved
Goto Forum:
  


Current Time: Mon May 28 01:43:28 GMT 2018

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

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

Back to the top