Hi All,
I have upgraded from CUDA V2.0 into CUDA 2.2. After the upgrade, I started getting linking errors in the emulation mode only. My code is working fine using device mode. I am using Visual Studio 2005.
I used the same exact path during the installation and checked that all environment variables are in place.
Your help is really appreciated,
–OA
[codebox]1>------ Build started: Project: PSO_GPU, Configuration: EmuDebug Win32 ------
1>Compiling…
1>sample.cu
1>sample.cu(478): warning: variable “selectedChannels” was declared but never referenced
1>sample.cu(481): warning: variable “path” was declared but never referenced
1>sample.cu(678): warning: function “scanf”
1>C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(295): here was declared “deprecated (“This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.”)”
1>sample.cu(696): warning: variable “_numberEnumPaths” was declared but never referenced
1>sample.cu(714): warning: variable “outtopologyIndex” was declared but never referenced
1>tmpxft_00000574_00000000-3_sample.cudafe1.c
1>tmpxft_00000574_00000000-7_sample.i
1>sample.cu(260) : warning C4244: ‘+=’ : conversion from ‘float’ to ‘int’, possible loss of data
1>Linking…
1>initialization.obj : warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/INCREMENTAL:NO’ specification
1>initialization.obj : error LNK2019: unresolved external symbol “double __cdecl calcBER(double,double,int)” (?calcBER@@YANNNH@Z) referenced in function “float __cdecl getAvailableBandwidth(int,int,int,float,float)” (?getAvailableBandwidth@@YAMHHHMM@Z)
1>sample.obj : error LNK2001: unresolved external symbol _connections
1>sample.obj : error LNK2001: unresolved external symbol _nodes
1>sample.obj : error LNK2001: unresolved external symbol _trx
1>sample.obj : error LNK2001: unresolved external symbol _S
1>sample.obj : error LNK2019: unresolved external symbol __Z11createSwarmfff referenced in function _main
1>sample.obj : error LNK2019: unresolved external symbol __Z14createTopologyv referenced in function _main
1>sample.obj : error LNK2019: unresolved external symbol __Z19printOutPutTopologyfi referenced in function __Z21printTopologyOnDevicei
1>sample.obj : error LNK2019: unresolved external symbol __Z21calcualteNumberOfhopsPi referenced in function __Z25printAllEnumPathsonDevicev
1>C:\Documents and Settings\osama.TRL\Desktop\May 10 2009 9_29 PM__PSO_GPU\EmuDebug\PSO_GPU.exe : fatal error LNK1120: 9 unresolved externals
1>Build log was saved at “file://c:\Documents and Settings\osama.TRL\Desktop\May 10 2009 9_29 PM__PSO_GPU\PSO_GPU\EmuDebug\BuildLog.htm”
1>PSO_GPU - 10 error(s), 7 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[/codebox]