943,592 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1823
  • C++ RSS
Jun 19th, 2009
0

FLTK compiling issues...

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 5
Light Poster
tundra010 is offline Offline
38 posts
since Jun 2009
Jun 19th, 2009
0

Re: FLTK compiling issues...

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.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
William Hemsworth is offline Offline
1,542 posts
since Mar 2008
Jun 20th, 2009
0

Re: FLTK compiling issues...

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...
Reputation Points: 11
Solved Threads: 5
Light Poster
tundra010 is offline Offline
38 posts
since Jun 2009
Jun 21st, 2009
0

Re: FLTK compiling issues...

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.
Reputation Points: 161
Solved Threads: 43
Posting Whiz
stilllearning is offline Offline
309 posts
since Oct 2007
Jun 22nd, 2009
0

Re: FLTK compiling issues...

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++
Reputation Points: 11
Solved Threads: 5
Light Poster
tundra010 is offline Offline
38 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Using ToggleKeys' Status LEDs of Keyboard
Next Thread in C++ Forum Timeline: C++,Macro Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC