Compiling wxbasic in C?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thebuilderofdoom
    New Member
    • Mar 2010
    • 18

    Compiling wxbasic in C?

    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
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Are you getting any error messages?

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      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.

      Comment

      • newb16
        Contributor
        • Jul 2008
        • 687

        #4
        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.

        Comment

        • Thebuilderofdoom
          New Member
          • Mar 2010
          • 18

          #5
          please help to compile it and give me the right version of wxwidgets

          Comment

          • Thebuilderofdoom
            New Member
            • Mar 2010
            • 18

            #6
            Microsoft Windows XP [Version 5.1.2600]
            (C) Copyright 1985-2001 Microsoft Corp.

            C:\Documents and Settings\Brosna n>cd C:\Borland\BCC5 5\Bin

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

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

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

            C:\Borland\BCC5 5\Bin>

            Comment

            • newb16
              Contributor
              • Jul 2008
              • 687

              #7
              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.

              Comment

              • weaknessforcats
                Recognized Expert Expert
                • Mar 2007
                • 9214

                #8
                Do you have the include files?

                Comment

                • Thebuilderofdoom
                  New Member
                  • Mar 2010
                  • 18

                  #9
                  yes i have them in the folder

                  Comment

                  • weaknessforcats
                    Recognized Expert Expert
                    • Mar 2007
                    • 9214

                    #10
                    Then you should be able to code:

                    Code:
                    #include "thatheader.h"
                    
                    //or
                    
                    #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.

                    Comment

                    Working...