![]() Make. Using this guide as a template you can easily set up alternative compiler toolchains no matter the source - just follow the same basic procedure. Gcc -o dist/Debug/MinGW-Windows/iup build/Debug/MinGW-Windows/main.o -L/C/MinGW/lib -liup -liupcontrols -lcd -liupcd -lcomctl32 -lole32 -g -I/C/MinGW/include -include /C/MinGW/include/iup.hīuild/Debug/MinGW-Windows/main.o: In function 'main':Ĭ:\Users\Carlos\Documents\NetBeansProjects\IUP/main.c:6: undefined reference to 'IupOpen'Ĭ:\Users\Carlos\Documents\NetBeansProjects\IUP/main.c:8: undefined reference to 'IupMessage'Ĭ:\Users\Carlos\Documents\NetBeansProjects\IUP/main.c:10: undefined reference to 'IupClose'Ĭollect2.exe: error: ld returned 1 exit status You now have a Code::Blocks environment that is configured to use TDM-GCC 32-bit properly. "/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/iup.exe Make.exe: Entering directory '/c/Users/Carlos/Documents/NetBeansProjects/IUP' ![]() Although this is giving this error: "/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS=. ![]() I followed the step-by-step, put the library in the compiler folder and included the header file in both the project hierarchy and the compiler configuration. I'm using Windows 10圆4 with the MingW compiler. IupMessage("Hello World 1", "Hello world from IUP.") The library I'm using is this and the program I tried to compile and this: #include I'm using Code Blocks, but I already tried it on Dev-C and Netbeans, and I also had problems. Download IDE with compiler(The file includes additionally the GCC/G compiler). I configured the folders in the linker / compiler, but it is not working. ![]() This is not the first time I have this type of problem when trying to use libraries in my programs. ||= Build failed: 9 error(s), 0 warning(s) (0 minute(s), 0 second(s)) =| Obj\Release\main.o:main.cpp|| first defined here| Obj\Release\main.o:main.cpp|| multiple definition of ' '| Obj\Release\main.o:main.cpp|| multiple definition of 'WindowProcedure(HWND_*, unsigned int, unsigned int, first defined here| undefined reference to WinMain16' Visual Studio if you are using Visual Studio Code then 1)Stetting 2)Search for save 3)scroll down and search for code runner 4)check the checkbox 'Save File Before Run 5)Now run. Adding a C library is giving this error when trying to compile ||= Build: Release in iup (compiler: GNU GCC Compiler) =| This alone helped me, rebuild builds your project again from scratch.
0 Comments
Leave a Reply. |