Hey everyone. I'm trying to use the g2 library in CodeBlocks but I can't seem to get it properly installed. Can somebody please explain me what to do, step by step? Best regards
pedrololarol 0
Newbie Poster
Recommended Answers
Jump to PostAh, on the Linux machines you just get the package and configure/build from source. Not so simple for Windows.
It looks like the source package includes some old Visual Studio files, so the easiest thing would be to build the 'g2' and 'g2dll' projects... if you can. I think they're …
Jump to PostLet's see if we can just build it with C::B; that seems simplest to me.
- Create a new project. Use the empty project template.
- Go to project properties, build targets tab.
- Change type to static or dynamic library (do for both Debug and Release)
- Open g2.dsp in a text editor
…
Jump to Posttried everything said above and I get alot of undefined referenced functions
That's expected :)
Make a note of the reference names; they usually refer to functions in a library the compiler hasn't been told about.
In this case, I know there are some Windows GDI functions that …
Jump to PostAwesome. Just add the g2 library you built to the linker settings of your project like you did for gd. Then include "g2.h" and knock yourself out :)
Jump to Postg2.dll is missing
Ah, sorry, forgot. If you built g2 as a static library, C::B will name the output "libg2.a" unless you changed it. You have to link to that file directly.
I think it wants "g2" to be a DLL if you leave off the extension.
…
All 21 Replies
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
pedrololarol 0
Newbie Poster
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
pedrololarol 0
Newbie Poster
pedrololarol 0
Newbie Poster
gusano79 247
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.