Hi, I'm trying to create a dll which uses a class defined in another dll.
I'm using dev-cpp 4.9.9.2 with the default compiler.
I can use the dll when I'm building an exe file but i'm unable to link this dll when building an dll file.
I've added the library in the linker window in the project options, and included the header file. But in the compiler log I can't find any reference to the library.
log
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Sideshore\Desktop\programmeren\c++\New BoardDesign\dll-generalfunctions\Makefile.win"
Executing make clean
rm -f Functions.o GNRFunctions.dll
g++.exe -c Functions.cpp -o Functions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DBUILDING_DLL=1
Functions.cpp: In function `double Interpolated2d(double**, int, double, int, int, bool)':
Functions.cpp:70: warning: passing `double' for converting 1 of `int abs(int)'
Functions.cpp: In function `int Round(double)':
Functions.cpp:133: warning: converting to `int' from `double'
Functions.cpp:135: warning: converting to `int' from `double'
Functions.cpp: In function `double** GetFrame(double**, int, double**, int, double**, int, double**, int, double**, int, double**, int, double**, int, double**, int, double, int)':
Functions.cpp:295: error: `CBSpline' undeclared (first use this function)
Functions.cpp:295: error: (Each undeclared identifier is reported only once for each function it appears in.)
Functions.cpp:295: error: expected `;' before "Curve"
Functions.cpp:296: error: `Curve' undeclared (first use this function)
Functions.cpp: In function `double** GetFrameSimple(double**, int, double**, int, double**, int, double**, int, double**, int, double**, int, double, int)':
Functions.cpp:537: error: `CBSpline' undeclared (first use this function)
Functions.cpp:537: error: expected `;' before "Curve"
Functions.cpp:538: error: `Curve' undeclared (first use this function)
make.exe: *** [Functions.o] Error 1
Execution terminated
I also tried to use Loadlibrary but that doesn't work neither
HMODULE hMod = LoadLibrary("Curves.dll");