03-01-2007 09:04 AM - edited 03-01-2007 09:04 AM
Message Edited by IBNobody on 03-01-2007 09:08 AM
03-01-2007 05:57 PM
03-02-2007 07:49 AM
03-02-2007 08:06 AM
03-20-2007 06:40 AM
03-20-2007 10:58 AM
04-02-2007 08:57 AM
04-30-2010 09:04 AM - edited 04-30-2010 09:09 AM
Hello,
Is there something new to switch libs between configurations using LabWindows/CVI 2009?
I have exactly the same problem, I would like to switch automaticly the lib used for debug 32bits, release 32bits, debug64bits and release 64bits.
Best regards,
Yannick Willener
04-30-2010 03:18 PM
There's a new indicator in the bottom right corner of the CVI frame to tell you what config you're in.
I never have been able to figure out how to get CVI to switch automagically between debug and release librararies for a DLL. It does seem like CVI should be able to do it, given all the other things it manages behind the scenes for you.
Menchar
04-30-2010 05:30 PM
Hello Yanick,
CVI can switch intelligently between 32- and 64-bit libs in your project, but unfortunately there's still no mechanism for switching between debug and release libs.
If your 32- and 64-bit libs have different names, then you can simply add them both to the project and CVI will use whichever lib has the same bitness as your current build configuration.
If they have the same name, you can only have one of them in the project at one time, since CVI will not allow you to add two files with the same name in the project. But if you place the 32-bit lib in a folder named "msvc" and the 64-bit lib in a folder named "msvc64", and the two folders are next to each other, you can add either of the two libs to the project and CVI will switch internally between each one depending on your build configuration. Other valid arrangements would be to put the 32-bit lib in the parent folder and the 64-bit lib in a sub-folder named "msvc64", or you could put the 64-bit lib in the parent folder and the 32-bit lib in a sub-folder named "msvc".
As far as debug vs. release is concerned, your options are still to either use some mechanism involving build steps, like I had suggested earlier, or to dispense with libs altogether and switch to dynamic loading of your DLL. That would allow you to use the _CVI_DEBUG_ macro that Roberto had mentioned earlier to select which DLL to pass to the LoadLibrary function.
Luis