NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
seckincann
Joined: 13 Sep 2011 Posts: 1
|
Posted: Tue Sep 13, 2011 2:21 pm Post subject: Problem while adding static library to a dynamic library project |
|
|
Hi, i have a .a file and .h files, and i want to use that static library in a dynamic library. i created a c++ dynamic library project in netbeans. then with the path project>properties>build>linker, i added the .a file with add library option. also added the folder of header files to additional library directories option. then when i build the whole project it's ok, but if i call any method from that .a file the project can not be built. it give undefined reference to function that i've called. how can i fix this? also i tried lots of commands with command prompt still no result.
thanks. |
|
| Back to top |
|
 |
gabs
Joined: 29 Sep 2009 Posts: 7
|
Posted: Tue Nov 15, 2011 5:21 pm Post subject: linking to libraries |
|
|
I have a similar problem...trying to link a C Application Project to a C static library in which reference is made to math.h. The library compiles okay but when I try to link it to the main application I get undefined references to intrinsic math functions that I thought were taken care of when I compiled the library...all very confusing.
Did you ever figure out the answer to your question or have it resolved? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|