- Mar 17, 2019 where do i enter #defineglutatexit in my source, also i downloaded the minGW development kit and so far it feels a lot better than dev-cpp and feels a loy more like visual c. Has anybody ever set up openGL on this software, also how do you link in this software, in devc all you do is add library files but in minGW i go to projectsettingslinker and all i can do is type so what do i do.
- Hello, i got the same problem, the reason was because i had another mingw instalations in my system. It seems that devc looks for a mingw installation each time it starts. The solution: i rename the c:mingw folder and everything start working.
Click here for Dev-C 5 FAQ. Last update:. When I compile my dos program and execute it, Dev-C minimizes and then restore in a second but nothing appears? Apr 22, 2014 f1.cpp:(.text+0xc): undefined reference to `foo' and if you compile f2.cpp on its own, you get this even more frightening one: crt0c.c:(.text.startup+0x39): undefined reference to `WinMain@16. In this situation, you need to compile both the the source files on the same command line, for example, using GCC: $ g f1.cpp f2.cpp -o myprog. Apr 16, 2015 There are several people out there with the same problem as me, but the solutions they were given were either unclear or didn't help me. I am using Windows 7 x86, Code Blocks Release 12.11 rev 8629, and SFML 2.2 GCC 4.8.1 TDM (SJLJ) - 32-bit.
Educated guess, how is 'DLLExport' defined? If it is a macro, did you define the right macro to get it defined correctly? Related question. Is the library providing the missing linking function static or shared (DLL)?
![Reference Reference](/uploads/1/2/6/1/126173872/152595738.png)
You may want to investigate makefiles. Then you can use your favorite editor and still write modular code the correct way.
I just had a glance at how to write makefiles. Looks messy(will look into that later). So opened Dev C++ instead, and tried to work with projects for the first time in DevC++( used visual C++ projects bfor though). The program compiles without error but i get errors while linking, saying undefined reference to xyz. Obviously the linker is not finding the definitions of the declared functions. I did include the .cpp files containing the definitions in my project, but still getting the same errors. What should i do?
- 11 Contributors
- forum 12 Replies
- 2,551 Views
- 7 Years Discussion Span
- commentLatest Postby Musa_JuttLatest Post
Narue5,707
>What should i do?
Post a reply to the thread that this question is concerning rather than starting a new one so that we have a clue what you're talking about. ;)
Post a reply to the thread that this question is concerning rather than starting a new one so that we have a clue what you're talking about. ;)
![Undefined Undefined](/uploads/1/2/6/1/126173872/395708294.png)
C++ Project Code
|