Lesson 14: Our First GUI Program

Blog post by darkwyrm on Tue, 2010-04-13 23:47

It's about time: our first program which does more than print stuff to the Terminal! Now the real fun begins! Learning to Program With Haiku, Lesson 14.

Comments

Re: Lesson 14: Our First GUI Program

Great tutorial, thanks.

Re: Lesson 14: Our First GUI Program

Thank's again.

Re: Lesson 14: Our First GUI Program

AH, the good stuff. :)

Thanks a lot.

Re: Lesson 14: Our First GUI Program

The lesson 14 link on this-> http://www.haiku-os.org/development/learning_to_program_with_haiku
page doesn't point to the pdf.

Re: Lesson 14: Our First GUI Program

Re: Lesson 14: Our First GUI Program

I tried to compile the app from the terminal

gcc app.cpp -o app

and got loads of undefined references to BApplication::something, the last one being BApplication::~BApplication. How should I compile it? It works fine in Paladin, but it crashses on my desktop.

Re: Lesson 14: Our First GUI Program

Compiling requires the system libraries libbe.so and libroot.so. When you try to compile from within the terminal you also need to include these, so that the compiler can find the BApplication, etc. You can either type out the full path in the terminal (/boot/system/lib/libbe.so) or you can copy and paste the libraries into the same folder that the rest of your source code is in. If you choose the latter, then just type the name of the lib when compiling.