hi i have a .so file written in c and i am trying to use it in a c++ program but when i try to compile the c++ code it gives me undefined reference to function getNearestAP() which is a part of my .so file.To add to this i tried with a c program to use the .so file surprisingly i was able to compile it and successfully execute it.Any help would be very much appreciated.
nabajyotip
0
Newbie Poster
Recommended Answers
Jump to PostI think you want the -l flag of g++.
All 4 Replies
daviddoria
334
Posting Virtuoso
Featured Poster
nabajyotip
0
Newbie Poster
daviddoria
334
Posting Virtuoso
Featured Poster
nabajyotip
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.