I have put a copy of the file here, that you can download: I have a libgdi32.a on my system, in C:MinGWlib. More libgdi32.a download than the slight speed difference in each browser with and without BufferZones. Then you can download a 'devpak' of FLTK 1.3.0. After starting DEV-CPP select 'Tools' from the menu and 'Package Manager'.
Hi!
I am trying to cross compile example program with kdevelop. Program is from OpenGL superbible book, first program 'sample.c'. The book is made for visual c++, but I don't have it and I want to try to compile it in linux for windows....
So the problem is that when I try to build project I got got following output:
cd '/home/khe/koodit/simplec' && WANT_AUTOCONF_2_5='1' WANT_AUTOMAKE_1_6='1' make -k -j1
make all-recursive
Making all in src
/bin/sh ../libtool --mode=link i586-mingw32msvc-c++ -lglut32 -lglu32 -lopengl32 -lm -lglaux -lglut32 -lglu32 -lopengl32 -o simplec.exe -mwindows simplec.o
../libtool: line 322: cygpath: command not found
i586-mingw32msvc-c++ -o simplec.exe -mwindows simplec.o -lm -lglaux -lglut32 -lglu32 -lopengl32
simplec.o:simplec.cpp.text+0x15): undefined reference to `___glutInitWithExit@12'
simplec.o:simplec.cpp.text+0x32): undefined reference to `___glutCreateWindowWithExit@8'
simplec.o:simplec.cpp.text+0x50): undefined reference to `___glutCreateMenuWithExit@8'
collect2: ld returned 1 exit status
make2: *** simplec.exe Error 1
make2: Target `all' not remade because of errors.
make1: *** all-recursive Error 1
make: *** all Error 2
Exited with status: 2 ***
Can anyone help please?
I have knoppix linux 3.8 and I have installed all mingw32 pakages.
I am trying to cross compile example program with kdevelop. Program is from OpenGL superbible book, first program 'sample.c'. The book is made for visual c++, but I don't have it and I want to try to compile it in linux for windows....
So the problem is that when I try to build project I got got following output:
cd '/home/khe/koodit/simplec' && WANT_AUTOCONF_2_5='1' WANT_AUTOMAKE_1_6='1' make -k -j1
make all-recursive
Making all in src
/bin/sh ../libtool --mode=link i586-mingw32msvc-c++ -lglut32 -lglu32 -lopengl32 -lm -lglaux -lglut32 -lglu32 -lopengl32 -o simplec.exe -mwindows simplec.o
../libtool: line 322: cygpath: command not found
i586-mingw32msvc-c++ -o simplec.exe -mwindows simplec.o -lm -lglaux -lglut32 -lglu32 -lopengl32
simplec.o:simplec.cpp.text+0x15): undefined reference to `___glutInitWithExit@12'
simplec.o:simplec.cpp.text+0x32): undefined reference to `___glutCreateWindowWithExit@8'
simplec.o:simplec.cpp.text+0x50): undefined reference to `___glutCreateMenuWithExit@8'
collect2: ld returned 1 exit status
make2: *** simplec.exe Error 1
make2: Target `all' not remade because of errors.
make1: *** all-recursive Error 1
make: *** all Error 2
Exited with status: 2 ***
Can anyone help please?
I have knoppix linux 3.8 and I have installed all mingw32 pakages.
Download required libraries from here
It is a tradition to use Turbo C for graphic in C/CPP. But it's also a pain in the neck. Here we are using Code::Blocks IDE, which will ease out our work.
Steps to run graphic code in CodeBlocks
1. Install Code::Blocks
Make sure you have installed Code::Blocks IDE on your machine. If you don't have this IDE or have any issue with compiler download and install it from here. http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe
2. Download the required header files
We need few files to be included in the lib folder of Code::Blocks.Download the files from here https://github.com/SagarGaniga/Graphics-Library
3. Include graphics.h and winbgim.h
Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory.
![Lib gdi32.a download Lib gdi32.a download](http://www.jo-tools.ch/xojo/customappfonts/caf_screenshot_2.png)
Path: C:Program Files (x86)CodeBlocksMinGWinclude
4. Include libbgi.a
Copy and paste libbgi.a file in the lib folder of Code:Blocks
Path: C:Program Files (x86)CodeBlocksMinGWlib
5. Add Link Libraries in Linker Setting
- In the Code::Blocks application go to, Settings > Compiler
- In the Global Compiler setting, click on the Linker Settings
- In Link Libraries, Add and browse to C:Program Files (x86)CodeBlocksMinGWlib and select libbgi.a.
- Paste this in the Other Linker Option tab of Linker Settings (i.e. on the right-hand side)-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- Save the setting and restart the application