On 27 Oct 2012, at 08:43, Thad Smith wrote: > I am in a freshman c++ programming course at Tx A&M. We are using fltk for a > project. I can use everything fine at the lab but I'm trying to set up on my > home computer using VS2012. > > I watched this tutorial and tried to use with current system: > > http://seriss.com/people/erco/fltk-videos/fltk-ms-vs-build.html > > The build went fine and I used the same command line statements from video in > my VS. I tried to build this simple fltk project as a test: > > #include <FL/Fl.H> > #include <FL/Fl_Window.H> > > int main() > { > Fl_Window win(720, 486); > win.show(); > return Fl::run(); > } > > and got these errors: > > 1>------ Build started: Project: FLTKtest, Configuration: Release Win32 ------ > 1> Source.cpp > 1>Source.obj : error LNK2001: unresolved external symbol "public: virtual > void __thiscall Fl_Window::show(void)" (?show@Fl_Window@@UAEXXZ) > 1>Source.obj : error LNK2001: unresolved external symbol "public: virtual > __thiscall Fl_Window::~Fl_Window(void)" (??1Fl_Window@@UAE@XZ) > 1>Source.obj : error LNK2001: unresolved external symbol "public: __thiscall > Fl_Window::Fl_Window(int,int,char const *)" (??0Fl_Window@@QAE@HHPBD@Z) > 1>Source.obj : error LNK2001: unresolved external symbol "public: static int > __cdecl Fl::run(void)" (?run@Fl@@SAHXZ) > 1>C:\Users\Mine\Desktop\CSCE121-Working folder\FLTKtest\Release\FLTKtest.exe > : fatal error LNK1120: 4 unresolved externals > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== > > Can somebody help me with better install instructions for VS2012?
Can't say for sure, never use VS myself, but on the basis of the error message I'd speculate that you have not linked against the fltk lib in your link command. You'd likely need to show us more details, like what commands the IDE (or your command line, in this case, I guess) actually executed and so forth. For what it's worth, I genuinely find it easier to use mingw to build Windows code, than using the MS VS tools and IDE's. See here (dated but still valid...) for more info: http://www.fltk.org/articles.php?L598 As regards the wider question of somebody helping, I'd suggest that if you are serious about programming, then the best person to help you is you... You need to really, properly, understand why the build is failing, what the error means, and what to do about it. Sure, we can tell you how to fix it, but that is not the same thing. Note that the question you are asking is not a fltk question, it is about using the tools, so you have to get those fundamentals in place so that you can start the journey... _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk