library question
-
(apologies if this is a really noddy question but its been a long day and my brain is fried :sigh: ) anyway I have created a library from a group of ADA files which used to form a program, I've have also written a C header file which has a list of accessible functions contained in the ada library (done as extern myFuncName ). I have now tried to use this library in a simple console application which consists of a main.cpp file and has the C header file #included. I have then changed the project settings so that it lists the ada library. Then in my main function i have called myFuncName ( ) ; but when it comes to linking the program it comes up as an unresolved external symbol. Does anyone have any ideas what I'm doing wrong? and also how to remedy it! I am using MS Visual Studio 6.0. TIA (off home now :-D )
-
(apologies if this is a really noddy question but its been a long day and my brain is fried :sigh: ) anyway I have created a library from a group of ADA files which used to form a program, I've have also written a C header file which has a list of accessible functions contained in the ada library (done as extern myFuncName ). I have now tried to use this library in a simple console application which consists of a main.cpp file and has the C header file #included. I have then changed the project settings so that it lists the ada library. Then in my main function i have called myFuncName ( ) ; but when it comes to linking the program it comes up as an unresolved external symbol. Does anyone have any ideas what I'm doing wrong? and also how to remedy it! I am using MS Visual Studio 6.0. TIA (off home now :-D )
Have you used __declspec(dllimport) myfuncName in your H file? Jaime
-
(apologies if this is a really noddy question but its been a long day and my brain is fried :sigh: ) anyway I have created a library from a group of ADA files which used to form a program, I've have also written a C header file which has a list of accessible functions contained in the ada library (done as extern myFuncName ). I have now tried to use this library in a simple console application which consists of a main.cpp file and has the C header file #included. I have then changed the project settings so that it lists the ada library. Then in my main function i have called myFuncName ( ) ; but when it comes to linking the program it comes up as an unresolved external symbol. Does anyone have any ideas what I'm doing wrong? and also how to remedy it! I am using MS Visual Studio 6.0. TIA (off home now :-D )