flat assembler
Message board for the users of flat assembler.
Index
> Linux > HELP Compiling |
Author |
|
kohlrak 29 Apr 2008, 20:36
No more giving back...
Last edited by kohlrak on 07 Aug 2008, 14:54; edited 1 time in total |
|||
29 Apr 2008, 20:36 |
|
Grincheux 29 Apr 2008, 20:41
Here is the source file, sorry but the comments are in French.
Here are all the files used stocked into an archive file. Thanks
_________________ ____________Kenavo_________________ Grincheux |
|||||||||||
29 Apr 2008, 20:41 |
|
vid 29 Apr 2008, 20:43
obviously you reference external symbol "g_file_test", which is not defined in any object you link to.
|
|||
29 Apr 2008, 20:43 |
|
Grincheux 29 Apr 2008, 20:49
This symbol is declared into the "Linux.inc" file included from "gAE.inc". This the way to do for any symbol. When linking you just have to add the right library, and it is not what I am doing !
|
|||
29 Apr 2008, 20:49 |
|
gunblade 29 Apr 2008, 21:04
Hey man, theres a typo in your building procedure:
gcc -Wall -s -O3 gAE.o -o gAE -L/lib/libglib-2.0.so.0 `gnome-config --cflags gnome gnomeui` `gtk-config --cflags` `gtk-config --libs` You should replace that -L/lib/libglib... with `pkg-config --libs glib-2.0` (with the `` quotes) -L is for specifying directories to look for libraries in, -l is for specifying those actual libraries, and you dont need the .so part of the name, or the directory leading up to it.. just it's name (without the lib part either). Will try it out to see if it works. Edit: Just edited my post to have the right code, my first attempt didnt work, in case you read it. So yeah, just use `pkg-config --libs glib-2.0` instead of -L/lib/libglib-2.0.so.0 Last edited by gunblade on 29 Apr 2008, 21:09; edited 1 time in total |
|||
29 Apr 2008, 21:04 |
|
Grincheux 29 Apr 2008, 21:08
I have re-read the doc about glib and found the answer, I join the new make file.
Thanks for your help
_________________ ____________Kenavo_________________ Grincheux |
|||||||||||
29 Apr 2008, 21:08 |
|
gunblade 29 Apr 2008, 21:11
Damn, you were too fast
But yeah, -lglib-2.0 will work, its suggested you use `pkg-config --libs glib-2.0`, as it'll include all the other libraries you need too (in this case, it makes sure that it include -liconv, since some parts of glib need it i believe.. although gcc may include it by default, either way.. cant hurt). |
|||
29 Apr 2008, 21:11 |
|
Grincheux 29 Apr 2008, 21:14
Thanks, but today I don't know all the needed libraries. I spend a lot of time in libraries searching...
|
|||
29 Apr 2008, 21:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.