Cuda Error Lnk2019 Unresolved External Symbol
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta error lnk2019 unresolved external symbol __declspec(dllimport) Discuss the workings and policies of this site About Us Learn c++ error lnk2019 unresolved external symbol more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us
Error Lnk2019 Unresolved External Symbol Public
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Error Lnk2019 Unresolved External Symbol Winmain@16 Referenced In Function ___tmaincrtstartup
you, helping each other. Join them; it only takes a minute: Sign up CUDA link error: unresolved external but external is specified in *.cu file up vote 1 down vote favorite Using Cuda 5.0, VS2010 This project compiles and links fine in VS2012 but VS2012 does not support Nsight debug so i am also developing in VS2010. error lnk2019 unresolved external symbol visual studio 2010 So I have a VS2010 project file but am using identical source codes files (.h, .cpp, .cu, .cuh. VS2010 build compiles everything fine, but linking reports error with unresolved external: Generating Code... 1>videoFuncUnThread.obj : error LNK2019: unresolved external symbol _runKernel referenced in function "void __cdecl videoFuncUnThread(int,bool,unsigned int * const)" (?videoFuncUnThread@@YAXH_NQAI@Z) 1>D:\StrApp\Viper1B_10\Viper1B_10\Debug\Viper1B_10.exe : fatal error LNK1120: 1 unresolved externals 1> 1>Build FAILED. 1> the missing symbol, runKernel, is host-side module that calls device side modules (resident in PTX file). when I search for all occurances of runKernel, I get 3 lines: filter.cu(127): extern "C" CUresult runKernel (int numFrames, cudaStream_t stream, bool firstBatch, int* searchLimit) { ... } // module code videofuncunthread.cpp(28): extern "C" CUresult runKernel(int numFrames, cudaStream_t stream, bool firstBatch, int* search); // videofuncunthread.cpp(137): CUresult resultKernel = runKernel( NinBatch, gStream, firstBatch, (int *)searchLimit); since "filter.cu" compiles it means that the invocation line (137) agrees with the prototype declaration (28); also you can see that the definition in filter.cu is identical with the prototype. Finally I note that I have
HPC Platform Products PGI Products for Apple OS X PGI Products for Windows Free HPC Products Free PGI for OS X HPC Product Feature Comparison Services http://www.pgroup.com/userforum/viewtopic.php?t=4099 PGI Subscription Service PGI Premier Service Support Support Options Current Release http://www.pgroup.com/userforum/viewtopic.php?t=3482&sid=703a0b221268493cb6d9e1b115708d16 Information Current Version Information Licensing Generate Permanent Keys Generate Trial License Keys Trial License FAQ Transfer License Locating Your PIN Licensing Troubleshooting FAQ Compatibility and Installation Licensing Compilation Linking Execution Portability Inter-language Support Request Download Free Trial Software Current Version Current Version Information Archive Releases Licensing Daemons error lnk2019 Resources Documentation Porting & Tuning Guides Tutorial Videos PGInsider Newsletters White Papers & Specifications Technical Papers & Presentations Articles Benchmarking Glossary User Forums Programming and Compiling Accelerator Programming Debugging and Profiling License and Installation Purchase Find a Reseller Product Configurator Quote Request Pricing End-user License Agreement Subscription Services Agreement Become a Reseller About Why Choose PGI News Center Job error lnk2019 unresolved Openings Locations Contact PGI PGI User Forum Search Memberlist Register Profile Log in Compiling fortran project using PVF 13.9 and Cuda CC5.5 PGI User Forum Forum Index -> Accelerator Programming View previous topic :: View next topic Author Message DolfJoined: 22 Mar 2012Posts: 161 Posted: Tue Nov 26, 2013 1:01 pm Post subject: Compiling fortran project using PVF 13.9 and Cuda CC5.5 Hi all, I have this strange problem when I compile using PVF 13.9 and cuda CC 5.5, which does not occur on same PVF compiler and cuda CC 5.0. FYI I am using Windows 8 with VS 2010. compiler flags: -Mpreprocess -D_DEBUG -U_DEBUG -Bstatic -Mbackslash -Mextend -Mcuda=cuda5.5,cc30 -I"C:\Program Files\PGI\win64\13.9\bin" -I"c:\program files\pgi\win64\13.9\include" -I"C:\Program Files\PGI\Microsoft Open Tools 11\include" -I"C:\Program Files (x86)\Windows Kits\8.0\Include\shared" -I"C:\Program Files (x86)\Windows Kits\8.0\Include\um" -fastsse -ta=nvidia,wait,cuda5.5,cc30 -Minform=warn here are the errors I get when I reach linking stage when compiling: Compiling Project ... common.f90 kernels.f90 flow.f90 force.f90 geometry.f90 grid.f90 Humidity.f90 init.f90 inverse.f90 misc.f90 mult.f90 OptionalParams.f90 output.f90 Quick5.f90 reynolds.f90 string.f90 UserDefGeom.f90 util.f90 Linking... common.obj : error LNK2019: unresolved exter
HPC Platform Products PGI Products for Apple OS X PGI Products for Windows Free HPC Products Free PGI for OS X HPC Product Feature Comparison Services PGI Subscription Service PGI Premier Service Support Support Options Current Release Information Current Version Information Licensing Generate Permanent Keys Generate Trial License Keys Trial License FAQ Transfer License Locating Your PIN Licensing Troubleshooting FAQ Compatibility and Installation Licensing Compilation Linking Execution Portability Inter-language Support Request Download Free Trial Software Current Version Current Version Information Archive Releases Licensing Daemons Resources Documentation Porting & Tuning Guides Tutorial Videos PGInsider Newsletters White Papers & Specifications Technical Papers & Presentations Articles Benchmarking Glossary User Forums Programming and Compiling Accelerator Programming Debugging and Profiling License and Installation Purchase Find a Reseller Product Configurator Quote Request Pricing End-user License Agreement Subscription Services Agreement Become a Reseller About Why Choose PGI News Center Job Openings Locations Contact PGI PGI User Forum Search Memberlist Register Profile Log in error LNK2019 compiling issue PGI User Forum Forum Index -> Programming and Compiling View previous topic :: View next topic Author Message ahmad adylehJoined: 21 Jun 2012Posts: 6 Posted: Sun Oct 07, 2012 12:40 pm Post subject: error LNK2019 compiling issue hello , I have an old project written in FOR77 and I want to modify it to work with CUDA . it was very hard to compiling it with VS2008 but final i succeed , but now I have two problem : 1- when I am trying to compile it in command line I get these error pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol fortab_ r eferenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol wodat_ re ferenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol read_all_ referenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol rodonce_ referenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol heathydro once_ referenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol v_zblocka de_ referenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol write_all _ referenced in function MAIN_ pgfortran7fve2-OlRjnDr.obj : error LNK2019: unresolved external symbol thehyco_ referenced in function MAIN_ pgfortr