Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Linker errors(Undefined references)
Linker errors [message #1385047] Tue, 03 June 2014 19:11 Go to next message
Eclipse UserFriend
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 07:30 Go to previous message
Eclipse UserFriend
The linker needs the library where "gpio_init" is defined. Did you add any libraries?
Previous Topic:Cant add "-static-libgcc -lws2_32 "
Next Topic:Lame question about using Eclipse (C++)
Goto Forum:
  


Current Time: Mon Jul 07 08:37:22 EDT 2025

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

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

Back to the top