Hi Jim,

Jim Dishaw wrote:
> Attached is a patch that gets plplot building correctly with the Intel
> Fortran compiler.  It still doesn't link correctly because of the
> mismatch in runtime libraries. I'm not enough of a cmake guru to track
> that down.  Maybe some can read my previous message about win32
> libraries and suggest a fix.

Have a look at cmake/share/cmake-2.4/modules/Platform/Windows-cl.cmake

There you will find for example

   SET (CMAKE_CXX_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1")

As a quick dirty hack change it directly in this file the correct flags 
for your build type (Release, Debug, etc.) to see if you get it working. 
Than we should replace this options within the plplot cmake files, which 
should be possible with REPLACE or so.

Your patches seem okay, apart from the patch for plstubs.h

-#ifdef _MSC_VER                                /* MSVC/CVF based */
+#ifdef IVF                              /* Intel Visual Fortran */
+#define STUB_LINKAGE STUB_U
+#elif CVF
+#define STUB_LINKAGE STUB_U
+#elif MSDOS                            /* MS-DOS based */

This won't work - rather it should be

+#elif defined(CVF)
+#define STUB_LINKAGE STUB_U
+#elif defined(MSDOS)                   /* MS-DOS based */

and so on. Since I don't have access to any fortran compiler in question 
I would ask Arjen to check these patches and apply them if applicable.

Thanks,
Werner

-- 
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to