08-24-2012 03:12 AM
Hi, I'm trying to use nisyscfg.lib in my C++ application - it works, but only for win32 configuration. How can I use this library in x64 application? Should I download another file? From where?
Thanks for reply.
08-24-2012 05:00 AM
This is weird. I just tried to compile the application I sent you yesterday as x64 and could run it without a problem. Maybe try to reinstall the system configuration and check is there is a x64 support file to install.
Can you also tried the application I compiled for x64 OS? What do you get?
Best regards
08-24-2012 06:17 AM - edited 08-24-2012 06:18 AM
Your application works fine.
Hi, i'm trying to compile simple program(on x64 machine):
#include "stdafx.h" #include "nisyscfg.h" int _tmain(int argc, _TCHAR* argv[]) { NISysCfgSessionHandle session = NULL; char target[NISYSCFG_SIMPLE_STRING_LENGTH] = ""; NISysCfgInitializeSession(target, NULL, NULL, NISysCfgLocaleDefault, NISysCfgBoolTrue, 10000, NULL, &session); return 0; }
And when Platform is set to Win32, works fine, but when platform is set to x64, I'e got a linker error:
Error 1 error LNK2019: unresolved external symbol NISysCfgInitializeSession referenced in function wmain C:\Users\zero\Documents\Visual Studio 2010\Projects\NormalDaqTest\NormalDaqTest\NormalDaqTest.obj
I'm linking to my program file: nisyscfg.lib from directory: C:\Program Files (x86)\National Instruments\Shared\CVI\ExtLib\msvc
I'm sure, that for x64 I need to link file msvcx64\nisyscfg.lib, but I haven't this file(in msvcx64 I've got only visa.lib file).
From where can I download nisyscfg.lib for x53 platforms?
08-24-2012 06:23 AM
I can confirm you I have the lib in nsvcx64 directory.
I would advise you to try to reinstall the system configuration and see in the custom install if you have the possibility to install the support for 64 bit Operating System.
Cheers
08-24-2012 06:25 AM
from where can I download install file? I was trying to reinstall it, but maybe I haven't good installation file.
08-24-2012 06:30 AM
Sorry I went too fast and forgot to paste the link. here it is:
NI System Configuration 5.3.2 - Windows Server 2003 R2 32-bit/XP/7 32-bit/Vista 64-bit/Vista 32-bit/7 64-bit/Server 2008 R2 64-bit, Real-Time OS
http://joule.ni.com/nidu/cds/view/p/id/3336/lang/en
Regards
08-24-2012 07:08 AM
Thanks, it helps me:) But which libraries should I use? C:\Program Files (x86)\National Instruments\Shared\CVI\Bin\msvc(64) or C:\Program Files (x86)\National Instruments\Shared\CVI\ExtLib\msvc(64) ?
08-24-2012 07:10 AM
normally you do not need to link explicitely the library from CVI. The compiler will lik the appropriate one regarding the application.
08-24-2012 07:24 AM - edited 08-24-2012 07:24 AM
maybe you're right, but I dont' compile it on the machine, where NI System Configuration 5.3.2 is installed. I only copy there *lib files.
09-10-2012 02:17 AM - edited 09-10-2012 02:20 AM
Hi adamenk
difference between /bin libraries and /extlib libraries is described here: http://digital.ni.com/public.nsf/allkb/74ADE302D7461E30862569DE00550F1D?OpenDocument
The /bin libraries are meant to be used with LabWindows CVI compiler whereas the /extlib libraries are meant to be used with external compiler.
Hope this helps.