Hi,
I think it is a FAQ but I found no answer to my problem.
I created a C# program that called some C++ legacy code.
I created 2 projects :
1) a DLL (IPRCommWrapper .dll) including an unmanaged C++ wrapper for
legacy code and a managed C++ wrapper to allow C# to call this unmanaged
wrapper
2) a C# Win application
In Debug mode, everything works fine.
When I try to build in release mode, I have the following error :
"libcmt.lib(crt 0.obj) : error LNK2019: unresolved external symbol _main
referenced in function _mainCRTStartup ".
here is the output from the build log :
Creating temporary file
"c:\Projects\IP RManaged\IPRCom mWrapper\Releas e\RSP000017.rsp " with
contents
[
/OUT:"C:\Project s\IPRManaged\Re lease\IPRCommWr apper.dll" /INCREMENTAL:NO
/NOLOGO /DLL /DEBUG
/PDB:"C:\Project s\IPRManaged\Re lease/IPRCommWrapper. pdb" /NOENTRY
/FIXED:No /noentry nochkclr.obj mscoree.lib pcomm.lib kernel32.lib
user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "\Program
Files\Microsoft Visual Studio .NET 2003\Sdk\v1.1\L ib\mscoree.lib"
.\Release\Assem blyInfo.obj
.\Release\compo rtmoxa.obj
.\Release\LogFi le.obj
.\Release\PortP aram.obj
.\Release\RtrPo rt.obj
.\Release\StdAf x.obj
.\Release\trans portInterface.o bj
.\Release\TrspP ortManaged.obj
.\Release\app.r es
]
Creating command line "link.exe
@c:\Projects\IP RManaged\IPRCom mWrapper\Releas e\RSP000017.rsp "
I suppose I did not choose appropriate options (though I selected
"NoEntry" as DLL entry point).
Thanks in advance for any help.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!