Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Archive: List-Post: List-Help: , 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 To: "'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) Content-Type: text/plain 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 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