I download a c packge for my computation work. there is a function " aft2boundar(int *, double *)" in it.
i write a "main.cpp" with vs2010, when i compile, it gives me the following error
unresolved external symbol "int __cdecl aft2dboundary(int *, double*)
but i have include the aft2.h and aft2.c in my project. I do not know how to resolve it.
it seems cpp file can not coexitst with c files . am i right?
Jump to Post
The package you downloaded should contain a *.lib file, you need to tell the compiler/IDE that it needs to find the function in that library.
There are a couple ways to do it
In one of your *.cpp files add this to near the top of the program, after …
All 4 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.