Compiling OWLNext using Microsoft Visual C++ 2008

For my readers: I´m writing this post in English, because it´ll be useful for people from other countries.

I was in trouble while trying to compile OwlNext using Visual C++ 9.0 ( or Visual C++ 2008). There´s a lack of documentation on Owlnext website and major documentation was written to help Borland C++ builder programmers.  After spending some hours trying to make it work, I decided to write down the steps which I used and share with everybody.

Don´t expect to see here why I´m using Owlnext instead of using Native Windows Libraries or other third party libs, like QT. I´m just trying to make it compile under Visual C++

This tutorial solves some linker and include problems, like LINK : fatal error LNK1104: cannot open file ‘owl-62107-v9-dti.lib’  or LINK : fatal error LNK1104: cannot open file ‘owlvd.lib’ .

Hands on!

  1. Download full owlnext 6.20 and install it
  2. Download source and header files for owlnext and decompress on a folder called c:\owlsrc
  3. Create owlroot.ini under c:\owlsrc\source folder setting content as OWLROOT=”c:\owlsrc\source”
  4. Edit c:\owlsrc\owlcore\msc8owl.bat changing visual studio 8 path to visual studio 9 path
  5. Edit c:\owlsrc\include\owl\StackWalker.h on line 29  changing from_MSC_VER > 1400 to _MSC_VER > 1500
  6. Create a “lib” directory on the c:\owlsrc
  7. Grab owlv.lib from c:\owl\lib and paste onto c:\owlsrc\lib
  8. Open dos prompt, point to c:\owlsrc\source\owlcore and exec msc8owl.bat. Wait until compile and finish.
  9. Copy owlvd.lib generated by this compilation onto c:\owl\lib
  10. Download pre-compiled libs for Microsoft Visual C++ 2008 and paste onto c:\owl\lib

Now, you´re done. Open an mdi example, just to test . Take a look at c:\owl\examples\Apps\tabbar. On Microsoft Visual C++, set some variables to make it work:

Right click on project and then properties. Under C/C++ locate “Addition Include Directories” and type c:\owl\include. Do the same step for Resources/General/Additional Include Directories.

Now we need to add some linker parameters, to make the compiler locate owlnext libraries. Right click on project and then properties. Under link/general, find “Additional Library Directory” and type c:\owl\lib .

Compile and run. It must works perfectly!

Comment ? Post it here.


Bookmarksbookmark bookmark bookmark bookmark bookmark bookmark

Popularity: 5%

10 Comments so far

  1. James on May 17th, 2009

    How about VS 2008 Express version

  2. admin on May 18th, 2009

    Hi James.

    It was done under Express Edition :)

  3. Rodrigo on September 3rd, 2009

    Olá amigo,

    Eu nã consegui achar o arquivo owlv.lib no caminho c:\owl\lib.
    Onde posso baixá-lo para concluir o procedimento?


  4. Sebastian Ledesma on September 3rd, 2009

    The new version of OWLNext 6.30 is ready!
    You can make a post (a brazilian post I will prefer) about it!

  5. admin on September 3rd, 2009

    Hello Sebastian,

    For sure I will!


  6. admin on September 3rd, 2009

    Baixa no site da owl na seção de pre-compiled.


  7. Sebastian Ledesma on September 3rd, 2009

    I prefer to use the SetupOWLNext, then patch with the latest version and then build, but since I use OWLMaker to build the library, it’s pretty easy for me.

    For a Visual C++ user it takes a litle more work since they need to use a msc8make.bat or similar.


  8. Jogy on October 17th, 2009


    The new version of the OWLMaker utility now supports Visual C++ (all versions).

    It should make building OWLNext 6.30 much easier.

  9. OWLNext now supporting all Microsoft Visual C++ versions | Blog do Robson Dantas on October 23rd, 2009

    [...] written few months ago, my adventure in owlnext´s world to compile it sucessfully under Visual C++ 2008. Fortunately, you dont need it [...]

  10. ruben on March 19th, 2011

    change owlroot.ini by
    (step 3)

Vale Presente