www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/17/10:55:05

Xref: news-dnh.mv.net comp.os.msdos.djgpp:926
Newsgroups: comp.os.msdos.djgpp
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!news.starnet.net!wupost!news.utdallas.edu!corpgate!bcarh189.bnr.ca!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ao950
From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Subject: Weirdest compile error I've ever seen
Sender: ao950 AT freenet3 DOT carleton DOT ca (Paul Derbyshire)
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Organization: The National Capital FreeNet
Date: Mon, 17 Jul 1995 07:01:26 GMT
Lines: 36
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp


I went to compile the source for an equation-graphing program (math and
graphics intensive) and got a really strange pair of compile-time error
messages:

c:\tmp/cc000091:1: parse error before `.'
c:\tmp/cc000091:917: malformatted character constant

I've never seen it reference a tmp file before...
I checked my code. Line 1 says

#include <graphics.h>

There's nothing wrong with the '.'

There is no line 917; the code is only 270 or so lines.
Obviously, the line numbers here bear no relation to the source lines...

As for the other error, I have no character constants... nor can there be
a typo making there seem to be one: I searched the code for the apostrophe
character and there are none!

All the required libraries were included in the command line; I checked
that all the needed #includes are there; and yes, I have a coprocessor.

So what gives? Is there some way to glean meaningful information from
these messages? Or has my compiler itself got a serious bug?

Please respond by e-mail...

--
    .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
 -()  <  circles, and bark is not smooth, nor does lightning travel in a
    `*'  straight line."    ,------------------------------------------------
         -- B. Mandelbrot  |  Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca

- Raw text -


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