Hi Arjen! >>>> ... >>>> ---snip--- >>>> -L+winmm.lib >>>> -L+comctl32.lib >>>> -L+rpcrt4.lib >>>> -L+wsock32.lib >>>> ---snap--- >>> ... >>> the maltreated libraries are referred to by their _name_ only, whereas >>> all the others have a directory and an extension. >>> >>> I suggest you try this change in FindwxWidgets.cmake: >>> >>> list(APPEND wxWidgets_LIBRARIES winmm.lib comctl32.lib rpcrt4.lib >>> wsock32.lib) >>> >>> My guess is that will suppress the addition of the -L+ prefix, as the >>> names will be complete file names, whereas this -L+ looks like a -l >>> prefix under Linux. >> >> Unfortunately, the change you suggested leads to exactly the same >> linker input dependencies. > > there is something weird about these libraries: > my next suggestion would have been to insert the directory, say, > c:\program files\something, using a CMake/environment variable, but when > I started looking for these import libraries, I could not find any, at > least not recent and for "bare" Windows: > - I have copies under Cygwin and MinGW > - I have a copy under version 7.0A of the Windows SDK > > but that is all. (I looked for comctl32.lib) > > Weird. One thing I can try is examine an example from Intel Fortran that > seems to use comctl32. > > Maybe these libraries are not required "explicitly"?
At least the project wxwidgets can be built without the libraries winmm.lib and winsock32.lib, i.e. rpcrt4.lib and comctl32.lib are definitively needed. I also have copies of rpc4rt.lib and comctl32.lib only under (I have neither CygWin nor MinGW installed): - V7.0A of the Microsoft Windows SDK (path is: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib ) Can I just enter this path in FindwxWidgets.cmake by replacing list(APPEND wxWidgets_LIBRARIES winmm comctl32 rpcrt4 wsock32) with list(APPEND wxWidgets_LIBRARIES C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\comctl32.lib C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\rpcrt4.lib) ? -- Best regards, Thorsten ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel