Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » unresolved external during link
icon9.gif  unresolved external during link [message #1737103] Tue, 05 July 2016 17:03
Alex Birman is currently offline Alex BirmanFriend
Messages: 2
Registered: March 2014
Junior Member

I've encountered a weird problem and I'll be glad if you could help me.
During a link of an executable project I get and unresolved external error.
The structure of my application is as the following:
Main_exe - executable project.
Using_lib_proj - using the unresolved function unres_foo() from unresolved.cpp
Used_lib_proj - project that contains the unresolved.cpp file.
Side_lib_proj - I'll tell about it later on.

Using_lib_proj references the Used_lib_proj.
Main_exe references all the libs. Also, in its properties, Linker section, I've added all the other libs, both in -l and -L options.
Despite the above, unres_foo() is unresolved during link.

The weird thing is, that when I open the definition of unres_foo() with F3 where it's used in Using_lib_proj, an empty file unresolved.cpp is opened, but it's path is Side_lib_proj path/Used_lib_proj/unresolved.cpp!
Side_lib_proj and Used_lib_proj are parallel folders, one aside another. There's no such a path Side_lib_proj path/Used_lib_proj/

soooo... why does it happen? Where can I search for a mistake in definitions?

Thank you!
Previous Topic:DLL build gives undef-referenced function error
Next Topic:Linker: undefined reference to `GPIOClass::~GPIOClass()'
Goto Forum:

Current Time: Tue Oct 23 04:51:34 GMT 2018

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

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

Back to the top