Forum Discussion
Altera_Forum
Honored Contributor
16 years agojeffa,
Glad to here things are improving. Yes, the function prototype that I have in my header file is: enum JATL_ERROR jtagatlantic_get_error(const char * * other_info); That is definitely your error. I found another version of my_jtag_atlantic.h on my computer which returned an int and placed it my project with a different name and set the preprocessor directive in the main program to include this file and received this error; Compiling... test.cpp C:\altera\jtag_uart\code\test\test.cpp(28) : warning C4101: 'read_array' : unreferenced local variable Linking... test.obj : error LNK2001: unresolved external symbol "int __cdecl jtagatlantic_get_error(char const * *)" (?jtagatlantic_get_error@@YAHPAPBD@Z) Debug/test.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Which is exactly the same as your error. I then swapped this file name with the old one which has the enum JATL_ERROR return value and build window showed this: --------------------Configuration: test - Win32 Debug-------------------- test.exe - 0 error(s), 0 warning(s) That is your answer. Change the return value to enum JATL_ERROR and it should solve the linker issue.