FLTK and Cygwin

Hi all, this is my first posting on this forum. I'm fairly new to C++ and this forum so please give advice on how to post.

Now, my problem: I am making my way through Stroustrup's "Principles and Practice", 2nd Ed. I'm hitting a brick wall on Chapter 12 where he uses the FLTK library.

Before I get to the actual problem, am I posting this on the right forum (since I'm running Cygwin, should I post on UNIX/Linux or since I'm actually running Windows7 should I post on Windows forum)?

Also, I'm wondering, since my problem is really about linking C++ libraries (not about C++ language proper), am I posting on the right forum?

Now, here's error I'm getting which I run fltk-config, which is a shell wrapper provided by FLTK to help you run g++:


1
2
3
4
  $ fltk-config --compile first.cpp
g++ -I/usr/include/freetype2 -ggdb -O2 -pipe -fdebug-prefix-map=/usr/src/ports/fltk/fltk-1.     3.3-1.x86_64/build=/usr/src/debug/fltk-1.3.3-1 -fdebug-prefix-map=/usr/src/ports/fltk/fltk-     1.3.3-1.x86_64/src/fltk-1.3.3=/usr/src/debug/fltk-1.3.3-1 -D_LARGEFILE_SOURCE -D_LARGEFILE6     4_SOURCE -D_THREAD_SAFE -D_REENTRANT -o 'first' 'first.cpp' /usr/lib/libfltk.a -lXcursor -l     Xfixes -lXext -lXft -lfontconfig -lXinerama -lpthread -lX11
g++: error: /usr/lib/libfltk.a: No such file or directory


It looks like I'm not creating the actual library, or archive (*.a file). I've confirmed that the file in question does not exist in /user/lib.

How I (tried) to create the library: I selected the fltk package in Cygwin with the latest install. My understanding is that Cygwin creates the library for you, but I think I must be wrong. So that means I probably have to run a "make" file to generate the library archive.

I also tried downloading ftlk from fltk.org. I'm not able to get through
make
1
2
3
4
5
6
7

=== making jpeg ===
Archiving ../lib/libfltk_jpeg.a...
process_begin: CreateProcess((null), /usr/bin/ar cr ../lib/libfltk_jpeg.a jaricom.o jcapimin.o jcapistd.o jcarith.o jccoefct.o jccolor.o jcdctmgr.o jchuff.o jcinit.o jcmainct.o jcmarker.o jcmaster.o jcomapi.o jcparam.o jcprepct.o jcsample.o jctrans.o jdapimin.o jdapistd.o jdarith.o jdatadst.o jdatasrc.o jdcoefct.o jdcolor.o jddctmgr.o jdhuff.o jdinput.o jdmainct.o jdmarker.o jdmaster.o jdmerge.o jdpostct.o jdsample.o jdtrans.o jerror.o jfdctflt.o jfdctfst.o jfdctint.o jidctflt.o jidctfst.o jidctint.o jmemmgr.o jmemnobs.o jquant1.o jquant2.o jutils.o, ...) failed.
make (e=2): The system cannot find the file specified.
C:\sdcc\bin\make.exe[1]: *** [../lib/libfltk_jpeg.a] Error 2
C:\sdcc\bin\make.exe: *** [all] Error 1



Not sure how to proceed, please advise. thank you!
This question might be a better answered by the FLTK guys?

FLTK Forums
http://www.fltk.org/newsgroups.php

Andy
Good idea. I'll let you know the outcome.
thank you.
Topic archived. No new replies allowed.