To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 17
16  |  18
Subject: 
Re: Compiling the compiler
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 4 Mar 1999 15:30:04 GMT
Viewed: 
2394 times
  
Thanks Dave, I did however find a version of Bison and Flex to use under
windows.  I didn't want to install the whole cygwin distribution so I searched
and found stand alone versions of that came from DJGPP.

I'm still having a few minor incompatabilities compiling under VC++.

Does anyone have any ideas?

The following are the offending lines of code.

void    Destruct(char *p)       {  ((T*)p)->~T(); }
platform\PArray.h(75) : error C2027: use of undefined type 'Symbol'

delete[] outputFile;
nqc/nqc.cpp(433) : error C2664: 'delete' : cannot convert parameter 1 from
'const char *' to 'void *'
- as the error message indicates outputFile is defined as const char *
can I just cast it to void *?




At 12:20 AM 3/4/99 +0000, you wrote:
In article <4.1.19990303163018.00a9da00@mail.connect.net>, Joel Shafer
<joel@connect.net> wrote:

I am thinking about porting NQC to Windows CE.  The first thing I noticed
was that the default
parse.cpp file was missing from the source distribution.

Also, has anyone already created a VC++ project file for NQC?  I'd like to
get a copy if it has been done.


Joel Shafer    joel@connect.net

You can probably use parse.tab.c instead.  The whole default/parse.cpp
thing is specific to Unix builds.  The Mac and Windows builds are done
under Metrowerks with custom Flex/Bison plugins.  The output of those
plugins is in nqc/lexer.cpp and nqc/parse.tab.c.  Make sure you have
things setup to compile parse.tab.c as a C++ file (there should be some
VC++ option for that), otherswise name it something ending in .cpp.

If you have some version of bison available, run it on parse.y to generate
a localized parse.tab.c, otherwise just go with the supplied version and
take your chances.  You may need to tweak it a little depending on your
compiler.

Sorry for the confusion.

Dave

--
reply to: dbaum at enteract dot com


Joel Shafer    joel@connect.net



Message has 1 Reply:
  Re: Compiling the compiler
 
(...) What file are you compiling when you get this error? I think the fix is to include "Symbol.h" before the array templates get instantiated, but it is curious that neither Metrowerks nor gcc complain. (...) Yes, a cast should be fine. Offhand, (...) (26 years ago, 5-Mar-99, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Compiling the compiler
 
I am thinking about porting NQC to Windows CE. The first thing I noticed was that the default parse.cpp file was missing from the source distribution. Also, has anyone already created a VC++ project file for NQC? I'd like to get a copy if it has (...) (26 years ago, 3-Mar-99, to lugnet.robotics.rcx.nqc)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR