ftdi - Visual C++ error with ftd2xx.h -
I have created a CPP blank project in Visual Studio 2013. I add a form (not currently used)
In this code:
#include & lt; Iostream & gt; #include & lt; Windows.h & gt; # Include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Conio.h & gt; #include "ftd2xx.h" using namespace std; Int main () {FT_HANDLE ftHandle; FT_STATUS ftStatus; FtStatus = FT_Open (0, and FThandle); If (ftStatus! = FT_OK) {cout & lt; & Lt; "Error opening FTDI \ n"; } Cout & lt; & Lt; "Fdfd"; Return 0; } I take these errors:
Error 1 error LNK2028: Unsolved Token (0A 2000410) "External" C "unsigned long __stdcall FT_Open Error 2 referenced in (int, null * *) "(? FT_Open @@ $$ J18YGKHPAPAX @ Z) function" int __cdecl main (zero) "(? Main @@ $ $ HYAHXZ) LNK2019: Unsolved exotic symbol" extern " C "__stdcall FT_Open (int, void * *) referred to in the unsigned long function" int __cdecl main (zero) "(? Main @@ $ $ HYAHXZ)" (? FT_Open @@ $$ J18YGKHPAPAX @) error 3 error LNK1120: 2 Unsolved insertion Interest * In my project path, "Document \ Visual Studio 2013 \ Project \ Project 1 \ Project 1" I inserted the file Is:
- FTD2XX.dll - ftd2xx.h - ftd2xx.lib I also link this ftd2xx.lib file to this PDF (pg. 13) Used
Highly likely for the linker ftd2xx Is not watching. Lib in the Document \ Visual Studio 2013 \ Projects \ Project1 \ Project1 directory, you can either place .lib where Visual Studio can view it Tell VS to view additional directory directories (such as the common LIB directory) or where you would like your documents \ visual Studio 2013 \ Projects \ Project 1 \ Project 1 , or all third party libraries A common set of directories Science Create and then tell VS to use it. I think project properties - & gt; Linker - & gt; Additional directories are the places where you can specify additional directories.
Comments
Post a Comment