How can I use DISLIN with Microsoft Visual C++ 2010 Express 64 BIT?

611 views
Skip to first unread message

guente...@googlemail.com

unread,
Jul 14, 2013, 10:16:57 AM7/14/13
to dislin...@googlegroups.com
The answer to FAQ:

How can I use DISLIN with Microsoft Visual C++ 2008 Express Edition


does not work because in the 64bit distribution of dislin there is no library disvcm.lib, but only

disvc.lib and disvc_d lib besides discpp.lib. When I add one of the existing libs as described

in the instructions I get the following linker error:

LINK : fatal error LNK1123: error when converting in COFF: file invalid or dammaged.

Does anybody know how to make dislin work with ms visual studio 2010 Express 64 bit?

The code looks like this:

#include "stdafx.h"
#include <dislin.h>


int main()
{
    int numberOfPoints=2;
    float x[2]= {0, 1};
    float y[2] = {0, 2};
    metafl("PNG");
    qplot(x, y, numberOfPoints);
    return 0;
}




Helmut Michels

unread,
Jul 14, 2013, 11:12:33 AM7/14/13
to dislin...@googlegroups.com
Hi,
For 64-bit you have to link with the Dislin library disvc.lib from the 64-bit
distribution of Dislin for MS Visual C++. Are you sure that you are compiling
and linking for the x64 platform, and not for win32?
I have no problems to use MS Visual Studio Express 64-bit with Dislin 64-bit.

Best regards,

Helmut

 

guente...@googlemail.com

unread,
Jul 14, 2013, 6:31:02 PM7/14/13
to dislin...@googlegroups.com
Thanks for the hint about the x64 platform. After I had switched
the platform toolset to the windows sdk it worked for x64.

Best regards,
Guenter

joeyverge...@gmail.com

unread,
Jan 10, 2014, 6:21:55 AM1/10/14
to dislin...@googlegroups.com

Helmut Michels

unread,
Jan 10, 2014, 7:04:32 AM1/10/14
to dislin...@googlegroups.com
Hi,

Am Sonntag, 14. Juli 2013 16:16:57 UTC+2 schrieb guente...@googlemail.com:

the Dislin library for MS Visual C++ 64-bit is disvc.lib, that's correct. For 32-bit disvcm.lib is normally used.
Please check your Platform Solution. Are you really creating an x64 application, or a win32 application?

Best regards,

Helmut
 
Reply all
Reply to author
Forward
0 new messages