Re: [CMake] Compile shared library and call it's functions

2016-03-08 Thread Jakob van Bethlehem
Hej, A short side-question - you mentioned you are compiling a DLL, yet you mention also you are on OSX. I'd expect a .dylib on OSX? Anywaysz, I think Andreas already answered your question quite clearly: you probably misinterpret the output of nm, since your CMakeLists.txt file looks exactly as i

Re: [CMake] Compile shared library and call it's functions

2016-03-07 Thread Andreas Pakulat
Hi, On Mon, Mar 7, 2016 at 9:29 PM, Ivan wrote: > Hello! > > Here is my CMakeLists.txt: > > cmake_minimum_required(VERSION 3.3) > project(untitled19) > > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") > > set(LIBRARY_SRC library.cpp) > > add_library(libra SHARED ${LIBRARY_SRC}) > > set(SOU

[CMake] Compile shared library and call it's functions

2016-03-07 Thread Ivan
Hello! I hope someone could finally help me. I spent about two days to find solution for my problem, but with no luck. Here is my problem: I want to create a shared library (dll on Windows, .so on Linux, .dylib on OS X) that contains some functions. This library should export only these functi