- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Mathgl is a C++ open source library that can be used to plot results directly in calculation (see http://mathgl.sourceforge.net/doc_en/Main.html).
There are examples (https://groups.google.com/forum/#!topic/mathgl/hMH3_U3XAHI) for coupling Fortran/Mathgl and GTK. The projects are as Code::Blocks form and use gfortran to compile. All is fine with these tools.
When I want to implement a similar solution in Visual Studio, I don't know how to link the dll in my project. I have an error LNK2019: unresolved external symbol.
I'm a newbie in coupling Fortran and C++ dll. Gfortran seems to do the job with the -lmgl option.
Can anyone tell me the proper way to do the same in Visual Studio?
Thank you
Pierre
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The key you are missing is that you don't link to a DLL - you link to the export library, a .lib, created when the DLL was built.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page