Mail Archives: djgpp/1995/08/16/11:30:00
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1565
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!dispatch.news.demon.net!demon!uknet!strath-cs!dcl-cs!bath.ac.uk!aber!ngh94
|
From: | ngh94 AT aber DOT ac DOT uk (NIGEL HUGHES)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Strange probs when moving from v1 to v2
|
Date: | 16 Aug 1995 10:51:39 GMT
|
Organization: | Prifysgol Cymru Aberystwyth University of Wales
|
Lines: | 41
|
Distribution: | world
|
Nntp-Posting-Host: | manuel.aber.ac.uk
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi All,
Having just downloaded and setup version 2 of the compiler I
tried to compile the latest version of our game and came up with
one very interesting (and frustrating problem).
It comes down to this, any file I make (normal c, header file or
even GAS .s files) I get the error (roughly)
parse error line x before character 032
Now if the file is say 1 line something like
#define NOWT 0
and I have another file
#include "nowt.h"
main()
{
int x=NOWT;
x++;
}
I get 2 errors,
in file included at line 1 (something like this anyhow)
nowt.h: parse error line 2 before character 032
test.c: parse error line 9 before character 032
Now in my games code I include another persons header file which causes
no problems at all. Please give me a clue as to what the hell is going on.
The only thing I can think of is that the PC ASCII format (cr and lf) could
be causing problems, but why does this not cause problems elsewhere in
the code?
Many thanks,
Nigel Hughes - Leading Edge.
- Raw text -