Skip to main content
GameDev.net gamedev.net
🔒 Locked

gdb problems when debugging

Started by bluemoon Apr 20, 2006 at 4:01 AM 1 replies 900+ views
Original Post
bluemoon
bluemoon
Hi @ all: I am using the gcc compiler on a windows platform.now i want to debug my program using gdb. i can start it with gdb main. But as soon as I want to type break jmphere //command line (gdb) break jmphere it says: "Function jmphere not defined". Does anybody know whats going wrong ?
bluemoon
bluemoon
jmphere is a label (where I want the debugger to stop)

I am quite new to gcc. Also I do not compile C-Code. I used NASM to assemble some quite simple asm code.

When I use: gcc -g -o main.exe main.o its giving me an error:

main.c: undefined reference to `WinMain@16'


so i used the linker directly with: ld -g -o main.exe main.o
This builds the program but i cant use gdb (see post above)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.