Mail Archives: djgpp/1999/03/30/17:05:56
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 -