[CMake] shared libraries .lib .dll

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Jun 11 04:52:31 EDT 2008


> Von: "Ingrid Kemgoum" 
>
> i'm very sorry but it's like chinese for me. u told me not to define the
> symbol so i skip the
> SET_TARGET_PROPERTIES(Hello PROPERTIES DEFINE_SYMBOL HELLO_EXPORTS) in the
> library directory
> 
> and when i dont use it i have 2 link problems like this:
> 
> LINK : H:\workspace\cmakeExample\proWinDyn\lib\Debug\Hello.dll not found
> or
> not built by the last incremental link; performing full link
> 
> Creating library H:\workspace\cmakeExample\proWinDyn\lib\Debug\Hello.lib
> and
> object H:\workspace\cmakeExample\proWinDyn\lib\Debug\Hello.exp
> 
> LINK : H:\workspace\cmakeExample\proWinDyn\bin\Debug\helloDemo.exe not
> found
> or not built by the last incremental link; performing full link
> 
I don't see a single error here - just some useless warnings.

> on the contrary, when i put it (set_target_prop) in the library directory
> i
> have the link problem of the dll in execution (but tje .lib is generated
> with a warning)
>
You really should not mix up ADD_DEFINITIONS() and SET_TARGET_PROPERTIES(... DEFINE_SYMBOL).


And plz. reply to the list.

Christian

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


More information about the CMake mailing list