The Build Environment

This page will explain how to create a project file to build a LGI application from scratch.

  • Open the BeIDE and create a new C++ project from the stationary
  • Set RTTI=on
  • Add these access paths:
    • _BeOS/Include
    • _Common/Include
  • Add project files...
  • Start Visual C++ v5
  • File->New
  • Projects tab...
  • Win32 Application
  • Enter project name
  • Tools->Options, Directories Tab...
    • _Win32\Include
    • _Common\Include
  • Project->Settings
    • C-C++ Tab/General Warnings=Level 1
    • C-C++ Tab/C++ Language RTTI=On
    • C-C++ Tab/Code Generation Use run-time libarary=[Single|Multithreaded] (depending on whether you are going to use GThread)
    • Link Tab/General Object/Library modules (add): comctl32.lib wsock32.lib libcmtd.lib (wsock if you are going to use ISockets)
  • Click on the file view in the workspace
  • Add project files...
Now adding files to the project...

Typically I split the libraries into nice folders of source code. So I'll represent that here with a tree like structure.

  • Lgi
    • Gui.cpp
    • GuiCommon.cpp
    • GuiDlg.cpp
    • GuiDragAndDrop.cpp (optional)
    • GuiMenu.cpp
    • GuiProgress.cpp
    • GuiToolbar.cpp
    • GuiViews.cpp
  • Gdc2
    • 8bit.cpp
    • 16bit.cpp
    • 24bit.cpp
    • 32bit.cpp
    • Filter2.cpp
    • Gdc2.cpp
    • Gdcfont.cpp
    • Gdcprim.cpp
    • Intel.cpp
    • Win32Dc.cpp | BeDC.cpp (depending on OS)
  • General
    • MemDev.cpp
    • ObjBag.cpp
    • File.cpp
    • StrFunc.cpp
    • Device.cpp
    • Prop.cpp
  • Application
    • Insert your application files here...
This is just a draft... I've probably missing some things here. Sorry!


© 1999 Matthew Allen