Hello,
I am using Windows XP, the Visual Studio 2008 Express Edition and
cmake-2.6.2.
I am trying to build the current PLPlot trunk (revision 8861) with the
following batch file in the PLPlot root folder:
REM start of script
echo on
setlocal
call "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
set BUILD_TYPE=Debug
rmdir /S /Q build-vc9-static-%BUILD_TYPE%
mkdir build-vc9-static-%BUILD_TYPE%
cd build-vc9-static-%BUILD_TYPE%
cmake -G "NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
-DCMAKE_INSTALL_PREFIX=install ^
-DBUILD_SHARED_LIBS=OFF ^
-DCMAKE_VERBOSE_MAKEFILE=ON ^
-DBUILD_TEST=ON ^
..
nmake
REM end of script
This runs up to the following compile error:
cl /DWIN32 /D_WINDOWS /W3 /Zm1000 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
-ID:\project\PLPlot\include -ID:\project\PLPlot\build-vc9-static-Debug
-ID:\project\PLPlot\build-vc9-static-Debug\include -DHAVE_CONFIG_H
-D_CRT_SECURE_NO_DEPRECATE /FoCMakeFiles\plplotd.dir\__\drivers\hpgl.obj
/FdD:\project\PLPlot\build-vc9-static-Debug\src\plplotd.pdb -c
D:\project\PLPlot\drivers\hpgl.c
hpgl.c
D:\project\PLPlot\drivers\hpgl.c(141) : error C2375:
'plD_dispatch_init_hp7470': redefinition; different linkage
D:\project\PLPlot\include\drivers.h(73) : see declaration of
'plD_dispatch_init_hp7470'
When I switch off one affected driver after the other (as with
-DPLD_hp7470=OFF), I see the error appearing in a lot of drivers.
The same error appears with BUILD_TYPE=Release and with
-DBUILD_SHARED_LIBS=ON.
I have noticed that people already successfully use PLPlot with msvc9.
How do you build?
Best regards,
Robert Pollak
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel