LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

kernel32.lib" CIN Error in VC6

"I am creating a simplest CIN using VC6.
(I am using NI document guideline 'How to build a CIN code resource (.lsb file) ')

Code compiles. But when I want to create DLL, 1 fatal linking error comes ...
"Linking...
LINK : fatal error LNK1104: cannot open file "kernel32.lib"
Error executing link.exe. "


What is this error. And How to get rid of it?


Also in VC6 env, in 'cutom built command/outpt' options the in project settings,
is the text 'WkspDir','OutDir','TargetName' supposed to be replaced by me?


Thanks."
Download All
0 Kudos
Message 1 of 4
(3,548 Views)
Sandeep;

A possible cause of that problem is that you are linking the MFC libraries statically. Check the following:

Go to Project -> Settings (Change to All Configurations)

In the "General" tab make sure "Use MFC in a Shared DLL" is selected.

That's all I know. I hope it helps.

For the second question, you don't need to replace those terms.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 4
(3,548 Views)
Hi.
Intitialllly option was 'General\Microsoft Foundation Classes\not Using MFC'. I changed to 'Use MFC in shared DLL'

The following error comes:

"Linking...
LINK : fatal error LNK1104: cannot open file "MSVCRTD.lib"
Error executing link.exe. "

what might be the problem?

Thanks much.
0 Kudos
Message 3 of 4
(3,548 Views)
Sandeep;

Make sure the Settings applied for "All Configurations".

Other than that, I am running out of ideas. One thing you can still try is to ignore the instructions for the custom step and see if the project compiles. Let us know the result.

Enrique
www.vartortech.com
0 Kudos
Message 4 of 4
(3,548 Views)