delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/12/15:07:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <1551C326F31FD2118E1900805FEA382514AD1D@SI>
From: Gary Powell <Gary DOT Powell AT sierra DOT com>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Newbie Link problem. (win 98)
Date: Thu, 12 Aug 1999 12:01:35 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

Hello,
  I apologize if this is the wrong place to ask this question.

  First, I am evaluating the cygnus tools and specifically gcc 2.95 for use
at my company Sierra.

  I have a fairly simple bit of code which I am trying to link. I have read
all the documentation on the Cygnus site that I could find relating to this
and either I am really dumb, lacking in caffeine or its not obvious.

Sample code:

#include <iostream>
int main(int, char **)
{
  std::cout << "Hello world" << std::endl;

  return 1;
}

if I use

g++ -o hello.exe -mpentium hello.cpp

I get link errors, about missing ostream stuff.

So I've added the specific libraries, -lstdc++ -lc

and now I'm missing only sysconf and sbrk. I tried adding 
-lmmalloc to the end of the library list
and it only created more missing calls. getpagesize, and _kill

I've also tried adding the mingw code and adding mingw32, then
shell32, then kernel32 (Even though I found documentation telling me
specifically not to include this one, I was getting desperate) and msvcrt

  Can you please either point me to the proper place to ask this question,
or tell me what library I'm missing. Or that its impossible, so I'll quit
banging my head on the keyboard.

  Thank you for your patience.

  Sincerely,
   Gary

gary DOT powell AT sierra DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019