cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/12/15:02:02

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie struggling with DJGPP's RHIDE
Date: Fri, 12 Feb 1999 19:48:43 -0000
Organization: Customer of Planet Online
Lines: 68
Message-ID: <7a20u8$4n9$2@news7.svr.pol.co.uk>
References: <7a1o10$tc6$1 AT news6 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: modem-63.zinc.dialup.pol.co.uk
X-Trace: news7.svr.pol.co.uk 918849288 4841 62.136.14.191 (12 Feb 1999 19:54:48 GMT)
NNTP-Posting-Date: 12 Feb 1999 19:54:48 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Michael Stefan wrote in message <7a1o10$tc6$1 AT news6 DOT svr DOT pol DOT co DOT uk>...
>        I know this sounds really stupid, but I can't get to grips with
>DJGPP's RHIDE.  I start RHIDE, and I've tried making the test program
below,
>but all the feedback I get is loads of "Warning:Conflicting types for
>in-built function 'memset'", or instead of 'memset', 'memcpy' and 'memcmp'.
>I also get "Parse error before 'streambuf'" and "Data definition has no
type
>or storage class".
>
>#include "iostream.h"
>int main()
>{
>    printf"Hellow world!\n";
>    exit(0);
>}


There are a few errors in the above program.
Try:
#include <stdio.h> /* printf is defined in stdio.h and not iostream.h */
int main ()
{
   printf ("Hello world!\n"); /* requires parenthesis (identifies printf as
a function) around the parameters. */
   return (0); /* although the exit () function will exit the program,
return is the correct way to do so */
}

>        I also have TCLite version 1, and because I saw that RHIDE/DJGPP
had
>no directory with *.h files, I configured the RHIDE
>Options/Directories/Include path "C:\TCLite\include\". Is that the problem?


DO NOT DO THIS !!!!
The TCLite include files will NOT be compatible with DJGPP...
Although some of the *.h files will have the same name the contents will be
different, the TCLite ones will probably be using TC specific exxtensions
and the DJGPP ones use DJGPP specific stuff. You MUST use the correct
include files.

The include files should be located in your DJGPP\include directory. If they
are not then you should get them from the DJGPP zips (I'm not sure which
one)

>        Please help! I am new to C (but I'm fairly good in VB) and the
FAQ's
>for DJGPP/RHIDE go on about debugging and libraries and I'm very confused.


C programming is very different to VB programming. Your best bet'll be to
look at other peoples code and get hold of a book.

>ANY help gratefully appreciated. Thanks,


You're quite welcome :-)

>Michael Stefan, London UK


Michael Stewart
"Just because you're paranoid doesn't mean they aren't after you..."




- Raw text -


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