[Glade-users] Adding extern code HELP

I have started develop a GUI, i GLADE (1...) and now i will add
a extern modul (c/h files).

The Headerfile i just added in the main.c


I have to
1. Add the .c file, so a first get a .o file and also linking.
2. There is also som Parameter to and to the linker

I have make a Makefile for a testprojekt thats looks like this
--------------- Makefile for testbuild--------------------
all: testdb
CC = g++
CPPFLAGS += -I/usr/local/pgsql/include
UP1= ../
VPATH= ../

testdb: testdb.o dbClass.o
        $(CC) -o testdb testdb.o dbClass.o -L/usr/local/pgsql/lib -lpq
dbClass.o: dbClass.cpp
        $(CC) -c $(UP1)dbClass.cpp $(CFLAGS)
testdb.o: testdb.cpp
        $(CC) -c testdb.cpp $(CFLAGS)
        rm dbClass.o testdb.o testdb

I have now spnet 2 days trying to find how to do this with the files
generated by GLADE but not find this.

PLEEEEAAASE does someone know this, help me.

I'am new to GLADE and GTK development under Linux
(worked with MFC and Windows before).

// Anders 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]