Is a PBU simalar to a PDS .OBJ and has anyone been successful/tried to inteface them with a PDS application?
Announcement
Collapse
No announcement yet.
PBUs
Collapse
X
-
PBU's are a PowerBASIC proprietary format and connot be integrated with other compilers' products.
MCM
Michael Mattias
Tal Systems (retired)
Port Washington WI USA
[email protected]
http://www.talsystems.com
-
No, PowerBASIC for DOS can produce EXE, PBU and PBC modules only. However, PowerBASIC for DOS can _use_ OBJ files successfully provided they are in a compatible form - see the CTOPB.FAQ file shipped with PB3.5 for more information.
Essentially, to produce an OBJ you need to use a C compiler or an assembler such as MASM, NASM, etc.
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>Lance
mailto:[email protected]
Comment
-
Walt,
The BASIC language is *heavily* dependent on what is called the "runtime library" or RTL. The RTL contains the actual code for BASIC statements like PRINT, INPUT, INKEY$, etc.
Because the RTL for each implementation of BASIC is different, it's not possible for any BASIC compiler to produce an .OBJ that can be linked with another language.
While QuickBasic and PDS will create .OBJ files, they can not be linked with C/C++ or Pascal languages because those languages do not contain any of the BASIC language's RTL. And you can't link such an OBJ to PowerBASIC because it has a completely different RTL than QB/PDS.
At the moment, only assembler and C compilers can create .OBJ files that can be linked with other languages.
--Dave
------------------
PowerBASIC Support
mailto:[email protected][email protected]</A>Home of the BASIC Gurus
www.basicguru.com
Comment
Comment