Hello, I'm writing a simple game engine in C++ with OpenGL. I'm using the engine as a dll, and when I link the dll none of the gl functions are defined. Do I need a definition file, or is this a bug in Dev-C++. I've noticed if I compile as an .EXE everything works, so I'm pretty sure it is the .def file. Any help is appreciated.
By the way, great product.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to create a .a file to link with your .exe. Yes, you need the .def file for that .dll. If you have the .def file you can create a .a file using dlltool.exe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I'm writing a simple game engine in C++ with OpenGL. I'm using the engine as a dll, and when I link the dll none of the gl functions are defined. Do I need a definition file, or is this a bug in Dev-C++. I've noticed if I compile as an .EXE everything works, so I'm pretty sure it is the .def file. Any help is appreciated.
By the way, great product.
You need to create a .a file to link with your .exe. Yes, you need the .def file for that .dll. If you have the .def file you can create a .a file using dlltool.exe.
OK, knew about the library file, off to make my .def file.