Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Linker errors(Undefined references)
Linker errors [message #1385047] Tue, 03 June 2014 23:11 Go to next message
Gary Richardson is currently offline Gary RichardsonFriend
Messages: 2
Registered: June 2014
Junior Member
I am an Eclipse newbie. To begin, I'm trying to build a small program that was
exported from another IED. I've succeeded in getting the source files compiled.
Now the linker is complaining of undefined references. There is one of this
form:

./main.o: In function `mbed::DigitalOut::DigitalOut(PinName)':
C:\Documents and Settings\Owner\My
Documents\Eclipse\blinky\Debug/../mbed/DigitalOut.h:49: undefined reference to
`gpio_init'

And four similar to this:

c:/program files/gnu tools arm embedded/4.7
2012q4/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-abort.o):
In function `abort': abort.c:(.text.abort+0xa): undefined reference to `_exit'

Other undefineds of this type were _kill, _wait, _getpid.

I hope this is enough information that someone can tell me what is missing.
Thanks in advance.
Re: Linker errors [message #1386086 is a reply to message #1385047] Fri, 13 June 2014 11:30 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
The linker needs the library where "gpio_init" is defined. Did you add any libraries?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Cant add "-static-libgcc -lws2_32 "
Next Topic:Lame question about using Eclipse (C++)
Goto Forum:
  


Current Time: Wed Apr 24 22:30:54 GMT 2024

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

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

Back to the top