[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TRNSYS-users] Creating new component



Hi,

I am trying to create a new component by using Intel Visual Fortran Composer XE 2011 with Microsoft Visual Studio 2008. I followed the instructions described in Chapter 1.8 in the getting stated manual to generate the new component; however the project workspace generated by TRNSYS has an extension .dsp and I am unable to open this project file. When I try to open the .dsp file with Microsoft Visual Studio, I am asked if I want to convert the file into a Visual C++ project file, which generates a .ncb and a .vcproj files. When I try to build the project compailer creates .sln file and I obtain the following two errors(Build log as attachment file):
 
Error LNK2001: unresolved external symbol__DllMainCRTStartup@12
Fatal error LNK1120: 1 unresolved externals

Is that compiler supposed to convert that .dsp file into visual C++ project? Could there be problems with some settings or that project file or am I perhaps doing something wrong?

Thank you,

Janne
ÿþ<html> <head> <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16"> </head> <body> <pre> <table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3> Build Log </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre> <h3>Build started: Project: Type201Lib, Configuration: Release|Win32</h3> </pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2> Command Lines </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build machine environment variables may not be correct. Build machine environment variables may not be correct. Creating temporary file "c:\Trnsys17\MyProjects\Type201\Release\RSP00000315363564.rsp" with contents [ /VERBOSE /OUT:&quot;C:\Trnsys17\UserLib\ReleaseDLLs/Type201.dll&quot; /INCREMENTAL:NO /LIBPATH:&quot;C:\Trnsys17\Compilers\IvfCXE2011\TRNDll\Release&quot; /DLL /MANIFEST /MANIFESTFILE:&quot;.\Release\Type201.dll.intermediate.manifest&quot; /MANIFESTUAC:&quot;level='asInvoker' uiAccess='false'&quot; /PDB:&quot;C:\Trnsys17\UserLib\ReleaseDLLs/Type201.pdb&quot; /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /IMPLIB:&quot;C:\Trnsys17\UserLib\ReleaseDLLs/Type201.lib&quot; /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib &quot;..\..\Exe\TRNDll.lib&quot; ] Creating command line "link.exe @c:\Trnsys17\MyProjects\Type201\Release\RSP00000315363564.rsp /NOLOGO /ERRORREPORT:PROMPT" </pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2> Output Window </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Linking... Starting pass 1 LINK : warning LNK4001: no object files specified; libraries used Searching libraries Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib: Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib: Searching ..\..\Exe\TRNDll.lib: Finished searching libraries Finished pass 1 LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 C:\Trnsys17\UserLib\ReleaseDLLs/Type201.dll : fatal error LNK1120: 1 unresolved externals Project : warning PRJ0018 : The following environment variables were not found: $(IFORT_COMPILER13) Build machine environment variables may not be correct. </pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2> Results </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build log was saved at "file://c:\Trnsys17\MyProjects\Type201\Release\BuildLog.htm" Type201Lib - 2 error(s), 1 warning(s) </pre></table><table width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2> </font></table></body></html>