I have a program that builds an executable file, which in turn calls DLL functions through a import file (*.lib). All the DLL functions are declared in a h-file.
The *.lib, *.h and *.dll files are provided as a toolkit from a website and are continuously updated (every year or so). My program works fine but I need to update it using the latest toolkit version. When I tried to do it, I merely replaced the old files with the new ones. However, when I try to rebuild my executable, I get the following error message 55 times:
"error C4430: missing type specifier - int assumed. Note: C++ does not support default-int"
The compiler points to the entire section in the *.h file where 55 DLL functions are declared. I observed and compared the "old" vs the "new" h-files, which are basically the same, except for the referred section that has changed the way DLL functions are declared. I add one line as an example:
NEW h-FILE contains:
************************************************** *******
int DLLEXPORT ENepanet(char *, char *, char *, void (*) (char *));
************************************************** *******
Whereas OLD h-FILE has
************************************************** *******
EXTERN int CALLTYPE ENepanet(char *, char *, char *, void (*) (char *));
************************************************** *******
I sort of know what DLLEXPORT does; however, I usually do not deal with the files that are provided from the website (I do not even touch them, I only use them). Rather, I deal with projects that use the provided DLL functions. I think I am missing one declaration on the top of my main cpp-file in order to account for that change. I should add that I DID NOT MODIFY MY MAIN CPP-FILE AT ALL.
I will really appreciate any help. Thanks in advance,
Pirata