Dear friends:
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?
regards
ztdep
-8
Junior Poster in Training
Recommended Answers
Jump to PostThe 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 …
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ztdep
-8
Junior Poster in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ztdep
-8
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.