public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jack <ostroffjh@sbcglobal.net>
To: cygwin-xfree@cygwin.com
Subject: Re: Linking Errors related to X11
Date: Thu, 22 Mar 2012 18:23:00 -0000	[thread overview]
Message-ID: <1332440585.10694.0@ffortso4> (raw)
In-Reply-To: <CABn7SNb-xPZotRwp=T-pdTxy2-rz2oK6rS8hD3a20iEvQnEu+g@mail.gmail.com>	(from tavmem@gmail.com on Thu Mar 22 13:55:04 2012)

The beginning of that (unwrapped)
   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

should probably be
   g++ -O2 -o aplus.exe mainC.o aplus_main.o aplus_uext.o matherr.o   
-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  
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.
> 
> When I delete the -I and the -L and try:
>     X_INCLUDES =
>     X_LIBS = /usr/include -lX11
> I get:
> 
> 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
> 
> When I also delete the /usr/include and try:
>      X_INCLUDES =
>      X_LIBS = -lX11
> I get:
> 
> 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'
> 
> I have tried numerous other variations.
> The one that appears to work best is:
>    X_INCLUDES = /usr/include
>    X_LIBS = -L /usr/include/X11 \
> but then I get errors with       am__include
> 
> The Makefile was generated by Automake 1.6.3.
> When I try to generate a new one, I get;
> 
> $ automake
> automake: `configure.ac' or `configure.in' is required
> 
> 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.
> 
> --
> 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/
> 
> 


--
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/


  reply	other threads:[~2012-03-22 18:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 22:19 Tom Szczesny
2012-03-21 23:05 ` Larry Hall (Cygwin-X)
2012-03-22 14:34   ` Christopher Faylor
2012-03-22 14:38     ` Larry Hall (Cygwin-X)
2012-03-22 17:55 ` Tom Szczesny
2012-03-22 18:23   ` Jack [this message]
2012-03-22 19:23   ` Christopher Faylor
2012-03-22 19:52     ` Yaakov (Cygwin/X)
2012-03-22 19:47 Tom Szczesny
2012-03-22 19:52 ` Larry Hall (Cygwin-X)
2012-03-22 20:22 ` Tom Szczesny
2012-03-22 22:37   ` Yaakov (Cygwin/X)
2012-03-22 22:41 ` Yaakov (Cygwin/X)
2012-03-22 20:31 Tom Szczesny
2012-03-22 20:55 Tom Szczesny
2012-03-22 21:08 ` Larry Hall (Cygwin-X)
2012-03-23  1:51 Tom Szczesny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1332440585.10694.0@ffortso4 \
    --to=ostroffjh@sbcglobal.net \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).