From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12208 invoked by alias); 22 Mar 2012 18:23:22 -0000 Received: (qmail 12198 invoked by uid 22791); 22 Mar 2012 18:23:21 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,TW_GX,TW_XC,TW_YG,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from nm4.bullet.mail.bf1.yahoo.com (HELO nm4.bullet.mail.bf1.yahoo.com) (98.139.212.163) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 22 Mar 2012 18:23:07 +0000 Received: from [98.139.212.148] by nm4.bullet.mail.bf1.yahoo.com with NNFMP; 22 Mar 2012 18:23:06 -0000 Received: from [68.142.200.221] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 22 Mar 2012 18:23:06 -0000 Received: from [66.94.237.104] by t9.bullet.mud.yahoo.com with NNFMP; 22 Mar 2012 18:23:06 -0000 Received: from [127.0.0.1] by omp1009.access.mail.mud.yahoo.com with NNFMP; 22 Mar 2012 18:23:06 -0000 Received: (qmail 19786 invoked from network); 22 Mar 2012 18:23:06 -0000 X-Yahoo-SMTP: uQK22MWswBCKBpZEmcLDxzBiNtxH7V0FvTGeZikrZyTgdEnV Received: from ffortso4 (ostroffjh@64.252.5.51 with login) by smtp112.sbc.mail.mud.yahoo.com with SMTP; 22 Mar 2012 11:23:06 -0700 PDT Date: Thu, 22 Mar 2012 18:23:00 -0000 From: Jack Subject: Re: Linking Errors related to X11 To: cygwin-xfree@cygwin.com References: In-Reply-To: (from tavmem@gmail.com on Thu Mar 22 13:55:04 2012) Message-Id: <1332440585.10694.0@ffortso4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-03/txt/msg00047.txt.bz2 The beginning of that (unwrapped) g++ -O2 -o aplus.exe /usr/include mainC.o aplus_main.o aplus_uext.o=20=20 matherr.o -L/usr/local/aplus-fsf-4.22/src/IPC should probably be g++ -O2 -o aplus.exe mainC.o aplus_main.o aplus_uext.o matherr.o=20=20=20 -I/usr/include -L/usr/local/aplus-fsf-4.22/src/IPC /usr/include is a directory to look for includes, not one of the files=20=20 to be compiled On 2012.03.22 13:55, Tom Szczesny wrote: > This question was answered in the cygwin list, but the proposed > solutions did not work. > Someone on the list suggested that I send the question to > cygwin-xfree, so I did. >=20 > When I delete the -I and the -L and try: > X_INCLUDES =3D > X_LIBS =3D /usr/include -lX11 > I get: >=20 > g++ -O2 -o aplus.exe /usr/include mainC.o aplus_main.o aplus_uext.o > matherr.o -L/usr/local/aplus-fsf-4.22/src/IPC > -L/usr/local/aplus-fsf-4.22/src/cxs > -L/usr/local/aplus-fsf-4.22/src/cxb > -L/usr/local/aplus-fsf-4.22/src/AplusGUI > -L/usr/local/aplus-fsf-4.22/src/cxsys > -L/usr/local/aplus-fsf-4.22/src/cxc > -L/usr/local/aplus-fsf-4.22/src/esf -L/usr/local/aplus-fsf-4.22/src/a > -L/usr/local/aplus-fsf-4.22/src/dap > -L/usr/local/aplus-fsf-4.22/src/MSGUI > -L/usr/local/aplus-fsf-4.22/src/MSIPC > -L/usr/local/aplus-fsf-4.22/src/MSTypes .libs/libimp-cygX11-6.a > .libs/libimp-cygxcb-1.a .libs/libimp-cygXau-6.a > .libs/libimp-cygXdmcp-6.a ../../src/IPC/.libs/libIPC.a > ../../src/cxs/.libs/libcxs.a ../../src/cxb/.libs/libcxb.a > ../../src/AplusGUI/.libs/libAplusGUI.a > ../../src/cxsys/.libs/libcxsys.a ../../src/cxc/.libs/libcxc.a > ../../src/esf/.libs/libesf.a ../../src/a/.libs/liba.a > ../../src/dap/.libs/libdap.a ../../src/MSGUI/.libs/libMSGUI.a > ../../src/MSIPC/.libs/libMSIPC.a ../../src/MSTypes/.libs/libMSTypes.a > -lpthread -ldl > /usr/include: file not recognized: Is a directory >=20 > When I also delete the /usr/include and try: > X_INCLUDES =3D > X_LIBS =3D -lX11 > I get: >=20 > g++ -O2 -o aplus.exe mainC.o aplus_main.o aplus_uext.o matherr.o > -L/usr/local/aplus-fsf-4.22/src/IPC > -L/usr/local/aplus-fsf-4.22/src/cxs > -L/usr/local/aplus-fsf-4.22/src/cxb > -L/usr/local/aplus-fsf-4.22/src/AplusGUI > -L/usr/local/aplus-fsf-4.22/src/cxsys > -L/usr/local/aplus-fsf-4.22/src/cxc > -L/usr/local/aplus-fsf-4.22/src/esf -L/usr/local/aplus-fsf-4.22/src/a > -L/usr/local/aplus-fsf-4.22/src/dap > -L/usr/local/aplus-fsf-4.22/src/MSGUI > -L/usr/local/aplus-fsf-4.22/src/MSIPC > -L/usr/local/aplus-fsf-4.22/src/MSTypes .libs/libimp-cygX11-6.a > .libs/libimp-cygxcb-1.a .libs/libimp-cygXau-6.a > .libs/libimp-cygXdmcp-6.a ../../src/IPC/.libs/libIPC.a > ../../src/cxs/.libs/libcxs.a ../../src/cxb/.libs/libcxb.a > ../../src/AplusGUI/.libs/libAplusGUI.a > ../../src/cxsys/.libs/libcxsys.a ../../src/cxc/.libs/libcxc.a > ../../src/esf/.libs/libesf.a ../../src/a/.libs/liba.a > ../../src/dap/.libs/libdap.a ../../src/MSGUI/.libs/libMSGUI.a > ../../src/MSIPC/.libs/libMSIPC.a ../../src/MSTypes/.libs/libMSTypes.a > -lpthread -ldl > ../../src/AplusGUI/.libs/libAplusGUI.a(AGIF.o):AGIF.C:(.text+0x13ba): > undefined reference to `_XWarpPointer' >=20 > I have tried numerous other variations. > The one that appears to work best is: > X_INCLUDES =3D /usr/include > X_LIBS =3D -L /usr/include/X11 \ > but then I get errors with am__include >=20 > The Makefile was generated by Automake 1.6.3. > When I try to generate a new one, I get; >=20 > $ automake > automake: `configure.ac' or `configure.in' is required >=20 > As there is no configure.ac or configure.in > I am coming to the conclusion that I may need to learn Autotools and > construct a fresh build process. >=20 > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://x.cygwin.com/docs/ > FAQ: http://x.cygwin.com/docs/faq/ >=20 >=20 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/