NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Problem while adding static library to a dynamic library project

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
seckincann



Joined: 13 Sep 2011
Posts: 1

PostPosted: Tue Sep 13, 2011 2:21 pm    Post subject: Problem while adding static library to a dynamic library project Reply with quote

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

PostPosted: Tue Nov 15, 2011 5:21 pm    Post subject: linking to libraries Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo