FLTK compiling issues...

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2009
Posts: 6
Reputation: tundra010 is an unknown quantity at this point 
Solved Threads: 0
tundra010 tundra010 is offline Offline
Newbie Poster

FLTK compiling issues...

 
0
  #1
Jun 19th, 2009
Hi

I have Microsoft Visual C++ 2008 Express Edition and I downloaded fltk from fltk.org. When I tried compiling it, i got many of these errors:

LINK : fatal error LNK1181: cannot open input file 'fltk.lib'

How do i compile FLTK now? Please help
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,407
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 114
Sponsor
William Hemsworth William Hemsworth is online now Online
Nearly a Posting Virtuoso

Re: FLTK compiling issues...

 
0
  #2
Jun 19th, 2009
Try reading the documentation on how to install it perhaps?

Check your linker settings, make sure you have entered everything correctly.
Last edited by William Hemsworth; Jun 19th, 2009 at 8:22 pm.
I need pageviews! most fun profile ever :)
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 6
Reputation: tundra010 is an unknown quantity at this point 
Solved Threads: 0
tundra010 tundra010 is offline Offline
Newbie Poster

Re: FLTK compiling issues...

 
0
  #3
Jun 20th, 2009
I read the directions in the documentation, and I followed the directions, but it didn't work, it still gave me the same error.

My linker settings seem to be ok...
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 305
Reputation: stilllearning has a spectacular aura about stilllearning has a spectacular aura about 
Solved Threads: 43
stilllearning stilllearning is offline Offline
Posting Whiz

Re: FLTK compiling issues...

 
0
  #4
Jun 21st, 2009
In your linker settings have you typed in the complete path to where fltk.lib is located ? By default it'll look for it in the current project directory. If fltk.lib is something you are supposed to compile also, then make sure that project is added as a dependency for your current project, so that it compiles before, and fltk.lib exists for you to use.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 6
Reputation: tundra010 is an unknown quantity at this point 
Solved Threads: 0
tundra010 tundra010 is offline Offline
Newbie Poster

Re: FLTK compiling issues...

 
0
  #5
Jun 22nd, 2009
thanks, stilllearning and William. I got FLTK compiled, but when I try to compile and run the following program, I get the error messages under that.

#include <FL/FL.h>
#include <FL/FL_Window.h>

int main() {
FL_Window win(400, 200);
win.show();
return FL::run();
}

Error messages:
error C2065: 'FL_Window' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'win'
error C3861: 'win': identifier not found
error C2065: 'win' : undeclared identifier
error C2228: left of '.show' must have class/struct/union

sorry if the answer is obvious, I am new to C++
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC