B
bauerwo
Dear all
I'm a newbie to C, C++, and Visual C++ .Net, so if there is a better place
to ask this question, please let me know.
Using Visual C++ .Net, I haven compiled and linked a static library
"myLib.lib", providing the function "myFunc". I can access it without any
problem in another C++ program "myMain" by writing
extern double myFunc(int N);
pragma comment(lib,"myLib.lib")
But the goal would be to have the calling program be written in C; when I
change the project properties into /TC "Compile as C program", I get
myMain error LNK2019: unresolved external symbol _myFunc referenced in
function _main
What's the right way to include a library into C?
Best regards,
W. Bauer
I'm a newbie to C, C++, and Visual C++ .Net, so if there is a better place
to ask this question, please let me know.
Using Visual C++ .Net, I haven compiled and linked a static library
"myLib.lib", providing the function "myFunc". I can access it without any
problem in another C++ program "myMain" by writing
extern double myFunc(int N);
pragma comment(lib,"myLib.lib")
But the goal would be to have the calling program be written in C; when I
change the project properties into /TC "Compile as C program", I get
myMain error LNK2019: unresolved external symbol _myFunc referenced in
function _main
What's the right way to include a library into C?
Best regards,
W. Bauer