> Also use VS IDE to make sure the library is listed.
The library is indeed listed in "Additional Dependencies" of the
linker for the executable target.
> What symbols? Try running dumpbin /symbols OSC.lib.
I figured it out - I had to link to "winmm" to get the symbol:
symbol __imp__timeGetTime
On 11/16/2010 7:19 PM, David Doria wrote:
Hm, it works correctly in Linux, but I still get a bunch of
error LNK2019: unresolved external symbol
What symbols?
Try running dumpbin /symbols OSC.lib. Also use VS IDE to make sure the
library is listed.
Everything look ok? Any thoughts?
Looks
Hm, it works correctly in Linux, but I still get a bunch of
error LNK2019: unresolved external symbol
errors in Windows.
The only difference I see is that the .lib file gets created in a
subdirectory of bin/
bin/Debug/OSC.lib (or bin/Release/OSC.lib)
vs the .a file which gets created in bin di
Be sure that you have
INCLUDE_DIRECTORIES( [path to Internal.h and External.h] )
set.
James
On Tue, Nov 16, 2010 at 12:24 PM, David Doria wrote:
> Ryan,
>
> The issue is that these headers are only used internally to this
> collection of files, so I don't want to have to include them in my
>
Ryan,
The issue is that these headers are only used internally to this
collection of files, so I don't want to have to include them in my
code. Here is a skeleton:
The files I've been given
--
External.h
External.cpp
Internal.h (used by External)
Internal.cpp
My files
MyCode
If you have "unresolved external" errors, then you are (most likely)
missing a target_link_libraries call -- find out what library those
symbols are built into, and link to that library.
On Tue, Nov 16, 2010 at 2:03 PM, David Doria wrote:
> I am trying to use ADD_LIBRARY to create a .lib file fr
Is this a library that has built successfully before with another build
system? Has this application been built successfully before?
For instances where the actual implementation is in the .h file, you usually
must make sure you #include that header file in a cpp in your own
application (the app l
I am trying to use ADD_LIBRARY to create a .lib file from a collection
of .cpp and .h files.
If I do:
ADD_LIBRARY(LibraryName AllOfTheCPPFiles.cpp)
and then try to link against that library, I get many missing-function
type linker errors. I looked in the .h files and many of them have
actual func