CUDA link error VS2008

Hi,

Apologies to adding to the never ending list of comiler and linker error posts on these boards, I have looked about but can’t find a solution that works for me.

I am running Windows 7(64) and have installed the 64 bit driver, SDK and toolkit. I can execute all the pre-built examples and compile, link and execute all the example projects.

So then i decided to make my own project, i followed the example this guy set out on his page
http://llpanorama.wordpress.com/2008/05/21…t-cuda-program/

The problem i have is the code on that page compiles ok, but it won’t link. I get the error

error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

I have set all my include paths to point to the right locations, but I cant seem to figure out why this error is occuring. Any help greatly appreciated (and might stop me from going mad)

Thanks

John

Ok, resolved it.

My bad, a typo in the command line meant the created .obj file was not named correctly, thus the missing link.