delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/30/17:05:56

From: kagenin AT usa DOT net (Kagenin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem
Date: Tue, 30 Mar 1999 21:06:39 GMT
Message-ID: <37013c23.3702724@news.jps.net>
References: <37012062 DOT ADB59000 AT prodigy DOT net>
X-Newsreader: Forte Free Agent 1.11/32.235
NNTP-Posting-Host: 208.25.51.182
X-NNTP-Posting-Host: 208.25.51.182
X-Trace: 30 Mar 1999 21:30:14 -0800, 208.25.51.182
Lines: 35
X-NNTP-Posting-Host: 209.63.224.240
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ken Robbins <puyrebel AT prodigy DOT net> was feeling all groovy on Tue, 30
Mar 1999 13:05:06 -0600 when they posted 
:
>Hello, when I try to compile a simple program using RHIDE, I get this
>error:
>
>Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or
>directory (ENOENT)
>
>Here is the program:
>
>#include <conio.h>
>#include <stdio.h>
>
>int main() {
>  clrscr();
>  printf("Hello, world!");
>  return 0;
>}
>
>When I compile it at the prompt using GCC ken.cpp -o ken.exe, it works
>just fine.

Why are you giving a C source a C++ extension?  RHIDE deteremines what
libs to link with, what stuff to throw on the command line, etc, by
it's filename extension.  Chage all your C Sources' names to .c
instead of .cpp and your headaches should go away.

If you ever want to compile C++ sources, tho, read 8.7 of the Faq, and
it'll tell you how to fix this known RHIDE/C++ Source issue.

Kagenin
---
"When the Going gets Weird, the Weird turn Pro"
-Hunter S. Thompson

- Raw text -


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