diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-24 17:26:00 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-24 17:26:00 +0000 |
| commit | e07da88179cf18b98fd68a5b6515955d87729b6b (patch) | |
| tree | 16ffc65569be76c817107e944fca1cff0cad48bc /documentation/basics.html | |
| parent | 1d7aef987ded55908ff4e24d97a8f936dd33f1f0 (diff) | |
Doco updates for 1.1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/basics.html')
| -rw-r--r-- | documentation/basics.html | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/documentation/basics.html b/documentation/basics.html index bf6e57da4..a92f67f75 100644 --- a/documentation/basics.html +++ b/documentation/basics.html @@ -1,7 +1,7 @@ <HTML> <BODY> -<H1 ALIGN=RIGHT><A NAME=basics>2 - FLTK Basics</A></H1> +<H1 ALIGN="RIGHT"><A NAME="basics">2 - FLTK Basics</A></H1> <P>This chapter teaches you the basics of compiling programs that use FLTK.</P> @@ -37,13 +37,13 @@ int main(int argc, char **argv) { window:</P> <UL><PRE> -Fl_Window *window = new <A href=Fl_Window.html#Fl_Window>Fl_Window</A>(300,180); +Fl_Window *window = new <A href="Fl_Window.html#Fl_Window">Fl_Window</A>(300,180); </PRE></UL> <P>and a box with the "Hello, World!" string in it:</P> <UL><PRE> -Fl_Box *box = new <A href=Fl_Box.html#Fl_Box>Fl_Box</A>(20,40,260,100,"Hello, World!"); +Fl_Box *box = new <A href="Fl_Box.html#Fl_Box">Fl_Box</A>(20,40,260,100,"Hello, World!"); </PRE></UL> <P>Next, we set the type of box and the size, font, and style of the label:</P> @@ -216,13 +216,22 @@ CC ... -L/usr/local/lib -lfltk -lXext -lX11 -lm gcc ... -L/usr/local/lib -lfltk -lXext -lX11 -lm </PRE></UL> -<P>The <TT>fltk-config</TT> script included with FLTK can be +<P>As before, the <TT>fltk-config</TT> script included with FLTK can be used to get the options that are required by your linker:</P> <UL><PRE> CC ... `fltk-config --ldflags` </PRE></UL> +<P>Finally, you can use the <TT>fltk-config</TT> script to +compile a single source file as a FLTK program: + +<UL><PRE> +fltk-config --compile filename.cpp +</PRE></UL> + +<P>This will create an executable named <TT>filename</TT>. + <H2>Compiling Programs with Microsoft Visual C++</H2> <P>In Visual C++ you will need to tell the compiler where to |
