flat assembler
Message board for the users of flat assembler.

Index > Linux > GTK

Author
Thread Post new topic Reply to topic
Grincheux



Joined: 15 Apr 2008
Posts: 17
Location: Mathenay, France
Grincheux 18 Apr 2008, 12:21
I try to add a treeview into a window and get the following error :

gNR.asm [64]:
cdecl.inc [7] ccall [4]:
pushd arg
error: invalid operand.

Where can I find the function declaration ?

DevHelp indicate there is no parameter !

If I use a CALL rather than a CCALL I get this :

[Grincheux@localhost gNR]$ make
fasm gNR.asm gNR.o
flat assembler version 1.67.26 (16384 kilobytes memory)
3 passes, 1890 bytes.
gcc -Wall -s -O3 gNR.o -o gNR `gtk-config --cflags` `gtk-config --libs`
gNR.o: In function `main':
(.text+0x2d): undefined reference to `gtk_tree_view_new'
gNR.o: In function `main':
(.text+0x3a): undefined reference to `gtk_tree_view_set_grid_lines'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [gNR] Erreur 1
[Grincheux@localhost gNR]$

Where is the mistake ?

_________________
____________Kenavo_________________

Grincheux


Last edited by Grincheux on 18 Apr 2008, 12:24; edited 1 time in total
Post 18 Apr 2008, 12:21
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 18 Apr 2008, 12:23
What is 'arg'? What is on line 64 of gNR.asm?
Post 18 Apr 2008, 12:23
View user's profile Send private message Visit poster's website Reply with quote
AlexP



Joined: 14 Nov 2007
Posts: 561
Location: Out the window. Yes, that one.
AlexP 18 Apr 2008, 14:29
I believe with 'pushd arg', he's accidentally typed 'arg', am I right? the only other explanation would be that he was trying a 'push arg'.
Post 18 Apr 2008, 14:29
View user's profile Send private message Visit poster's website Reply with quote
Grincheux



Joined: 15 Apr 2008
Posts: 17
Location: Mathenay, France
Grincheux 18 Apr 2008, 14:45
The analyzer is waiting for <Arg> but this function has no <Arg> !
Post 18 Apr 2008, 14:45
View user's profile Send private message Reply with quote
Grincheux



Joined: 15 Apr 2008
Posts: 17
Location: Mathenay, France
Grincheux 18 Apr 2008, 19:43
We have just to modify the MakeFile like this :

ASM = gcc

CFLAGS = -Wall \
-s \
-O3

gNR: gNR.o
$(ASM) $(CFLAGS) gNR.o -o gNR `pkg-config --libs gtk+-2.0 --cflags gnomeui`
gNR.o: gNR.asm cdecl.inc gtk.inc
fasm gNR.asm gNR.o

clean:
rm -f *.o gNR

Now all symbols are known
Post 18 Apr 2008, 19:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.