Re: Cannot find library under Windows
- From: Hubert Sokołowski <h sokolowski wsisiz edu pl>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: Cannot find library under Windows
- Date: Sun, 23 May 2004 20:26:05 +0200
Hi!
here is a sample makefile for dev-cpp and gtk2
CC = gcc
FLAGS = -Wall -O2 -ffast-math -fomit-frame-pointer
-fexpensive-optimizations -fstrength-reduce -mno-cygwin -mcpu=pentium
-mms-bitfields -mwindows
INCLUDE = -Ic:/Dev-Cpp/include/glib-2.0
-Ic:/Dev-Cpp/lib/glib-2.0/include -Ic:/D ev-Cpp/include/gtkdeps-2.0
-Ic:/Dev-Cpp/include -Ic:/dev-cpp/include/gtk -Ic:/dev-cpp/include/pango
-Ic:/dev-cpp/include/atk
OFILES = main.o \
support.o \
interface.o \
callbacks.o \
OBJS = $(OFILES)
SRCS = $(OBJS.o:.o=.c)
all: dep $(OBJS)
-include .depend
dep:
$(CC) -M *.c $(FLAGS) $(INCLUDE) > .depend
%.o: %.c %.h main.h
$(CC) $(FLAGS) $(INCLUDE) -c $*.c
link:
$(CC) $(FLAGS) $(INCLUDE) -o main.exe $(OFILES) $(LIBS)
when running your app you better have all gtk DLLs in the current
directory
regards
hs
On Sun, 23 May 2004 11:41:50 +0200 (SAST)
Alf C Stockton <alf stockton co za> wrote:
I have developed a C GTK+2 program in Linux which I now need to port
to Windows.
I decided to use Dev-C++ and all compiles well but despite the
library,
gtk-win32-2.0 being in the Dev-C++\lib directory and the Dev-C++
project
library directory pointing to this directory the link fails telling me
gtk_main_exit cannot be found.
What have I forgotten to do ?
---
Regards,
Alf Stockton www.stockton.co.za
A day for firm decisions!!!!! Or is it?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]