divyang4481 / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

cmake on clean RcfDll subproject causes build-error. #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download project tar-file
2. Go into the demo/cmake subfolder.
3. cmake CMakeLists.txt
4. make

What is the expected output? What do you see instead?
There are two error shown in the console:
c++: /wd4275: No such file or directory
c++: /wd4251: No such file or directory

And the build of the shared library libRcfDll.so failed with the message:
make[1]: *** [RcfDll/CMakeFiles/RcfDll.dir/all] Error 2

What version of the product are you using? On what operating system?
RCF 1.2
Ubuntu 9.10

Please provide any additional information below.
When you do another (incremental) build with make, then the shared lib is also 
build. Currently i do not know exactly why that is so.
But attached is a patch for a condition in the RcfDll/CMakeLists.txt to disable 
warnings only if an MSVC compiler is used.

Original issue reported on code.google.com by Hungerha...@googlemail.com on 13 Oct 2010 at 9:40

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for that, I've applied your patch. The /wd.... flags should only be used 
with Visual C++.

Original comment by jarl.lin...@gmail.com on 15 Oct 2010 at 12:24