Subject:
|
Re: Compiling the compiler
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Fri, 5 Mar 1999 07:36:59 GMT
|
Viewed:
|
2460 times
|
| |
| |
In article <4.1.19990304102818.00a9bac0@mail.connect.net>, Joel Shafer
<joel@connect.net> wrote:
> 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'
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.
> 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 *?
Yes, a cast should be fine.
Offhand, this may actually be a violation of constness (which means I
should change the source) that Metrowerks and gcc are not catching. I'll
have to check the C++ spec.
Dave
--
reply to: dbaum at enteract dot com
|
|
Message has 1 Reply: | | Re: Compiling the compiler
|
| (...) I've checked into this a little further. It comes down to something like the following: void foo(const char *p) { delete p; } On one hand, this is conceptually a violation of "constness" as a caller to foo() wouldn't know that the object (...) (26 years ago, 6-Mar-99, to lugnet.robotics.rcx.nqc)
|
Message is in Reply To:
| | Re: Compiling the compiler
|
| 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 (...) (26 years ago, 4-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
|
|
|
|