I use the cs50 app and VS2013. Of course, all is well with the cs50 app (since it is designed to be) but when I use VS2013 to code, any functions I use from cs50.h
produce an error that looks like this (below is when I used GetString
):
1>------ Build started: Project: tester_application, Configuration: Debug Win32 ------
1> tester.c
1>tester.obj : error LNK2019: unresolved external symbol _GetString referenced in function _main
1>C:\Users\Jinyoung\Desktop\CSCI E-50\VS projects\tester\Debug\tester_application.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm 100% sure that cs50.h
and cs50.c
are included in the same folder as stdio.h
or iostream.h
.
What should I do to fix this?