10-18-2005 04:23 AM
I am getting the following error when I try to build the dll in VC++.
"Linking...
Creating library Debug/winport.lib and object Debug/winport.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs;
use /NODEFAULTLIB:library
MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/winport.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe."
Can anyone help me to get rid of this problem?
Thanx & Regards,
Srini.
10-19-2005 01:45 PM
srini,
Are you trying to use the dll in LabVIEW and getting the error from LabVIEW? If you are using Measurement Studio there is a seperate discussion forum for those issues. The MSVCRT is a Microsoft Visual C Run Time library. This thread explains it a little better: MSVCRT.dll
If you are trying to create C++ dlls to be used in LabVIEW you may need to create wrappers if you are using certain classes. Here is some more information on calling dlls in LabVIEW An Overview of Accessing DLLs or Shared Libraries from LabVIEW
Sam R.
Applications Engineer
National Instruments
10-19-2005 02:16 PM