472,143 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Compiling wxbasic in C?

Thebuilderofdoom
why i can't compile it using Pelles C or Borland or Dev-C++ or MVC++ or Cygwin or wxDev-C++ please help
Web site
Wxbasic site
Mar 25 '10 #1
9 3632
jkmyoung
2,057 Expert 2GB
Are you getting any error messages?
Mar 26 '10 #2
weaknessforcats
9,208 Expert Mod 8TB
What leads you to believe wxbasic is C++? Not even C is C++.

This sounds like a complaint that Spanish words are not in my Chinese dictionary for some reason.
Mar 26 '10 #3
newb16
687 512MB
It's a qbasic-like interpreter written in C, the source (downloadable) really looks like C. It requires wxwidgets, this may be the reason of failure. It was also written in the times when wxwidgets was called wxwindows, and may be incompatible with the new version.
Mar 26 '10 #4
please help to compile it and give me the right version of wxwidgets
Mar 26 '10 #5
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Brosnan>cd C:\Borland\BCC55\Bin

C:\Borland\BCC55\Bin>bcc32 C:\wx\wxbasic.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2075: Incorrect configuration file option: Bcc32.cfg

C:\Borland\BCC55\Bin>bcc32 C:\wx\wxbasic.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
C:\wx\wxbasic.cpp:
Error E2209 C:\wx\wxbasic.cpp 15: Unable to open include file 'wx/wxprec.h'
Error E2209 C:\wx\wxbasic.cpp 24: Unable to open include file 'wx/wx.h'
Error E2141 C:\wx\console.cpp 32: Declaration syntax error
Error E2303 C:\wx\console.cpp 37: Type name expected
Error E2293 C:\wx\console.cpp 40: ) expected
Error E2040 C:\wx\console.cpp 44: Declaration terminated incorrectly
Error E2040 C:\wx\console.cpp 44: Declaration terminated incorrectly
Error E2190 C:\wx\console.cpp 44: Unexpected }
Error E2190 C:\wx\console.cpp 44: Unexpected }
Error E2303 C:\wx\console.cpp 47: Type name expected
Warning W8054 C:\wx\wxbasic.cpp 47: Style of function definition is now obsolete

Error E2258 c:\Borland\Bcc55\include\_stddef.h 36: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\_stddef.h 132: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\_stddef.h 133: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\_stddef.h 134: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\_stddef.h 135: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\search.h 33: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\search.h 70: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\search.h 71: Declaration was expected
Error E2258 c:\Borland\Bcc55\include\search.h 72: Declaration was expected
Error E2092 c:\Borland\Bcc55\include\stdlib.h 36: Storage class 'extern' is not
allowed here
Error E2040 c:\Borland\Bcc55\include\stdlib.h 36: Declaration terminated incorre
ctly
Error E2090 c:\Borland\Bcc55\include\stdlib.h 506: Qualifier 'std' is not a clas
s or namespace name
Error E2272 c:\Borland\Bcc55\include\stdlib.h 506: Identifier expected
Error E2090 c:\Borland\Bcc55\include\stdlib.h 511: Qualifier 'std' is not a clas
s or namespace name
Error E2272 c:\Borland\Bcc55\include\stdlib.h 511: Identifier expected
Error E2228 c:\Borland\Bcc55\include\stdlib.h 511: Too many error or warning mes
sages
*** 26 errors in Compile ***

C:\Borland\BCC55\Bin>
Mar 27 '10 #6
newb16
687 512MB
It can't find wxwidget include files, provide the compiler with them (set up include path so that it know where to search). There is also bison source file you have to take care about.
Mar 27 '10 #7
weaknessforcats
9,208 Expert Mod 8TB
Do you have the include files?
Mar 28 '10 #8
yes i have them in the folder
Mar 29 '10 #9
weaknessforcats
9,208 Expert Mod 8TB
Then you should be able to code:

Expand|Select|Wrap|Line Numbers
  1. #include "thatheader.h"
  2.  
  3. //or
  4.  
  5. #include <thatheader.h>

If you use the <>, the header file must be in a folder along a predefined path. Here you need to see how your development tool lets you specify additional preprocessor include directories. I know how to do this using Visual C++.

If you use the " " format, then the header must be in the same folder as the file you are compiling. If not, the preprocessor reverts to the <> format and looks along the predefined paths.
Mar 29 '10 #10

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Rudy Ray Moore | last post: by
1 post views Thread by Jim Heavey | last post: by
10 posts views Thread by Christina N | last post: by
2 posts views Thread by Justin Naidl | last post: by
8 posts views Thread by WebSnozz | last post: by
reply views Thread by =?Utf-8?B?amVmZmVyeQ==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.