Alright, here's the deal, I tried on both 2005 and 2010 versions of
Microsoft Visual C++ and I followed the instructions.
Here's what I did in full.
-I installed the program
-I downloaded FLTK
-I copied the FL folder into the include folder
-I copied the header AND .cpp files given for the book specifically
into the include file, but NOT the FL file
-I tried the exercise from the book
-I got this message:
1>------ Build started: Project: test1, Configuration: Debug Win32
------
1>Build started 1/5/2011 9:58:09 AM.
1>InitializeBuildStatus:
1> Touching "Debug\test1.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> test1.cpp
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\window.h(36): error C3861: 'copy_label':
identifier not found
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(35): error C2065: 'FL_DARK_RED' :
undeclared identifier
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(36): error C2065: 'FL_DARK_GREEN' :
undeclared identifier
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(37): error C2065: 'FL_DARK_YELLOW' :
undeclared identifier
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(38): error C2065: 'FL_DARK_BLUE' :
undeclared identifier
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(39): error C2065:
'FL_DARK_MAGENTA' : undeclared identifier
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(41): error C2065: 'FL_DARK_CYAN' :
undeclared identifier
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(45): warning C4305: 'initializing' :
truncation from 'Graph_lib::Color::Transparency' to 'char'
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(45): warning C4309: 'initializing' :
truncation of constant value
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(47): warning C4305: 'initializing' :
truncation from 'Graph_lib::Color::Transparency' to 'char'
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(47): warning C4309: 'initializing' :
truncation of constant value
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(384): error C2664:
'Fl_Image::Fl_Image(const uchar *,int,int,int,int)' : cannot convert
parameter 1 from 'int' to 'const uchar *'
1> Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\graph.h(385): error C3861: 'draw_empty':
identifier not found
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\gui.h(107): warning C4018: '<' : signed/
unsigned mismatch
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\gui.h(112): warning C4018: '<' : signed/
unsigned mismatch
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\gui.h(117): warning C4018: '<' : signed/
unsigned mismatch
1>c:\documents and settings\023207\my documents\visual studio
2010\projects\test1\test1\test1.cpp(22): error C2039:
'wait_wait_for_button' : is not a member of 'Simple_window'
1> c:\documents and settings\023207\my documents\visual
studio 2010\projects\test1\test1\simple_window.h(17) : see declaration
of 'Simple_window'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.60
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
I honestly have no idea what to do now, any idea?
On Dec 21 2010, 11:50 am, cipri_arad_77 <
23cipri4...@gmail.com> wrote:
> Hello,
>
> I have succeded to do the graphic chapters with Visual C++ 2010
> Express Edition.
> I do not have any experience, not the time to try it with other ide or
> compilers like Code::Blocks.
>
> Unfortunately for me, I am working at quality in automotive industry,
> and have little time for programming.
> I managed to do something like 2/3 of "PPP using C++", and now I am
> studiing algorithms with STL implementation: recursion (Divide et
> Impera), greedy, stacks, queues, lists, binary trees, backtracking,
> graphs ... I have a romanian book for this, and now I finish
> frecursion.
>
> So what I can explain it is only what I have done untill now.
> To start with please see this topic on our forum for teh book PPP
> using C++ :
>
>
http://groups.google.com/group/ppp-public/browse_thread/thread/f3627f...
> > > to begin this part of the book.- Ascundeþi textul citat -
>
> > - Afiºare text în citat -