Jump to content

PFWGui - Source Code Now Available


#21
diedir

diedir
  • Developer
  • 166 posts
really nice demo, runnig very well.
it would be very interesting if you'll sell it or share it.
great work
things that should be in LE since beginning though....
I7 - 16Go - W8.1 - GTX770

#22
Patrik

Patrik
  • Developer
  • 32 posts
A test version of the library is now available in the first post.

To use it you need to include the "include" folder in your project and link it agains PFWGui.lib
Also you need to have the ftgl.dll file in your application folder FTGL is used for font rendering.
Currently the font folder is harcoded to Data/Fonts where arial.ttf must be located.

A simple example is included in the examples folder. More are coming, along with some documentation.

As it's a test version expect some bugs.

#23
wayneg

wayneg
  • Developer
  • 90 posts
sweet!

#24
Andr3wHur5t

Andr3wHur5t
  • Developer
  • 115 posts
Cool!
Tools:
AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro

Programing & Scripting Languages:
C |C++ | C# | Obj-C |  LUA | Javascript |  PHP | Ruby

#25
peubuy

peubuy
  • Developer
  • 4 posts
Very nice! thanks.

#26
franck22000

franck22000
  • Developer
  • 226 posts
Thanks you so much patte ! looking forward for the final release :)

Quote

You guys are going to be the death of me.  Josh Klint

#27
Patrik

Patrik
  • Developer
  • 32 posts
Update:
- Some bugs and issues fixed. (hopefully not so many new have been introduced)
- Better font management
- New gui component: GridView

Font Management:
- Will automatically load all fonts found in the Data/Fonts folder on creation
- Can load external fonts with the command loadExternalFont


Posted Image


Example
PFWGui* gui = new PFWGui(hwnd);   // create the gui
gui->getFontManager()->loadExternalFont("E:/fonts/COOLVETI.TTF");   // load an external font

GuiFont* fnt1 = new GuiFont("COOLVETI.TTF", 24);   // create a font object using the loaded font, loaded fonts are called by their filename, case sensitive
fnt1->setColor(255,0,0);  // sets the color of the font to red

GuiButton* btn = new GuiButton(10, 140, "Quit game", 140, 50);   // create a button
btn->setFont( fnt1 );   // assign the font to the button

The updated library is available in the first post

#28
Clackdor

Clackdor
  • Developer
  • 210 posts
You have great timing.  Hoping to play with this in the next couple of days or weeks.

Hows it coming with rendering this on top of 2D images rendered by LW?

#29
Patrik

Patrik
  • Developer
  • 32 posts
I've now setup an google code page for this project. So the source code is available there if someone is interested. :)
Link in first post or here  http://code.google.com/p/pfwgui/

#30
ParaToxic

ParaToxic
  • Developer
  • 403 posts
Wow very nice GUI ;D
But I can't load it ,because I become lots of linking errors.In project properties I loaded the include files and in  main.cpp I wrote #pragam comment(lib,"PFWGui.lib") but I become around 30 Errors??

Can you tell me why?
Thanks

#31
Scott Richmond

Scott Richmond
  • Developer
  • 419 posts
Congratulations and thank you on the OS release! I'll definitely look at integrating it over the next month or two when the GUI phase comes around.
Programmer, Modeller
Intel Core i7 930 @ 3.5GHz | GeForce 480 GTX | 6GB DDR3 RAM | Windows 7 Premium x64
Visual Studio 2008 | Photoshop CS3 | Maya 2009

Website: http://srichnet.info

#32
Patrik

Patrik
  • Developer
  • 32 posts

View PostScott Richmond, on 07 January 2012 - 01:07 PM, said:

Congratulations and thank you on the OS release! I'll definitely look at integrating it over the next month or two when the GUI phase comes around.

View PostParaToxic, on 07 January 2012 - 12:17 PM, said:

Wow very nice GUI ;D
But I can't load it ,because I become lots of linking errors.In project properties I loaded the include files and in  main.cpp I wrote #pragam comment(lib,"PFWGui.lib") but I become around 30 Errors??

Can you tell me why?
Thanks


Thank you.


Could you send me the error lines? Did you download it from the zip file attached in the first forum post or from the google code page?
The zip file found on the first page is outdated and should have been removed. (Will do it now.)

If you downloaded it from the forum post please download it from the google code page instead.

If not, did you remember to link the opengl32.lib in your project also as mentioned in the readme?

#33
Pixel Perfect

Pixel Perfect
  • Members
  • 2,028 posts
Have downloaded both the lib and the source code and would like to thank you for the work you have put into this Patte and for making it freely available.  Will be trying it out as soon as I've finished the current work I'm doing.
Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro,  Shader Map Pro. Development language: C/C++

#34
ParaToxic

ParaToxic
  • Developer
  • 403 posts
Thanks for support.I have now the lib downloaded from the first post and the include files from the google page.Set the include path to "Src" from the google files and wrote
#pragma comment(lib,"PFWGui.lib")
#pragma comment(lib,"opengl32.lib")

Now I become 71 errors:

1>------ Erstellen gestartet: Projekt: guitest, Konfiguration: Release Win32 ------
1>Kompilieren...
1>guitest.cpp
1>engine.cpp
1>Verknüpfen...
1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiWindow.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiEventHandler.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.
1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.
1>libcmt.lib(tidtable.obj) : error LNK2005: __encode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(tidtable.obj) : error LNK2005: __decode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(invarg.obj) : error LNK2005: __invoke_watson ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(crt0dat.obj) : error LNK2005: __amsg_exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(crt0dat.obj) : error LNK2005: __initterm_e ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(crt0dat.obj) : error LNK2005: _exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(crt0dat.obj) : error LNK2005: __exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(crt0dat.obj) : error LNK2005: __cexit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(setlocal.obj) : error LNK2005: __configthreadlocale ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(typinfo.obj) : error LNK2005: "public: void __thiscall type_info::_type_info_dtor_internal_method(void)" (?_type_info_dtor_internal_method@type_info@@QAEXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(typinfo.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert.
1>libcmt.lib(typinfo.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert.
1>libcmt.lib(mlock.obj) : error LNK2005: __unlock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(mlock.obj) : error LNK2005: __lock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(printf.obj) : error LNK2005: _printf ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert.
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert.
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert.
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert.
1>libcmt.lib(crt0.obj) : error LNK2005: _mainCRTStartup ist bereits in MSVCRT.lib(crtexe.obj) definiert.
1>libcmt.lib(errmode.obj) : error LNK2005: ___set_app_type ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.
1>LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.
1>MSVCRT.lib(cinitexe.obj) : warning LNK4098: Standardbibliothek "libcmt.lib" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.
1>guitest.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall PFWGui::PFWGui(struct HWND__ *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0PFWGui@@QAE@PAUHWND__@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiScrollbar.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(Signal0.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiLayout.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(PFWGui.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".
1>C:\Users\Stan\Desktop\guitest\Release\guitest.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://c:\Users\Stan\Desktop\guitest\Release\BuildLog.htm" gespeichert.
1>guitest - 71 Fehler, 38 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

(Sry it's in german ;D)
Would be nice when you help me ;D
Thanks

#35
Patrik

Patrik
  • Developer
  • 32 posts

View PostParaToxic, on 07 January 2012 - 07:12 PM, said:

Thanks for support.I have now the lib downloaded from the first post and the include files from the google page.Set the include path to "Src" from the google files and wrote
#pragma comment(lib,"PFWGui.lib")
#pragma comment(lib,"opengl32.lib")

Firstly the the library you downloaded from the first forum post can't be used with the sources downloaded from the google code page. It's an old version and will not match the header files anymore. I've now deleted that one from the post and the only way to get the library now is via the google code page. One reason that the old library did not work for you may have been that it was compiled for a visual studio version that you are not using.

Therefore I have now created a google code page for the project where you can download the sources and compile the project yourself for whatever version of visual studio you are using. There is a readme file included with the sources with instructions on how to compile it.

In summary:
- Delete the precompiled library that you have downloaded.
- Download and compile the sources yourself.
- Link the library you have compiled to your project along with opengl32.lib and include the src folder.

#36
ParaToxic

ParaToxic
  • Developer
  • 403 posts
Thanks ;D
I tried to compile the new project and had to include ftgl src and freetype src but now my compiler says that he can't find ftgl.lib?I don't know where to download ftgl.lib and in the pack I downloaded isn't that file.

EDIT: okey I had to compile it too ;D

I compiled and it created a lib ,so I made a new project with LEBuilder and set the include path to the src folder and copied PFWGui.lib in the project folder and added this lib with #pragma comment... to the project.Now I become 47 errors:(
All the errors are from the file GuiFontManager and GuiFont (obj)

(Only a few lines)

PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)".
1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)".
1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z)".

#37
Patrik

Patrik
  • Developer
  • 32 posts
I'm not familiar with LEBuilder, I myself is using Visual Studio for my projects.

But the problem seems to be that when you compiled the pfwgui library it was not able to find the ftgl library you have compiled.
So it now knows which functions should be available, which it found out from the header files, but as it could not find the library (.lib file) it does not know how to use them.

Please check that the ftgl.lib or (ftgl_d.lib if you are compilng in debug) is included correctly when you compile pfwgui.

If you use the included visual studio projects go to the project options page and check that the include folders are setup correctly (found under the "C++ -> General" section and under the "Librarian -> General" section) they need to match where the ftgl header files are found and where it's compiled library is found. Also make sure that the name matches the settings, it can vary depending on what version you have compiled ftgl.lib for release and ftgl_d.lib for debug version.

You also need to set the runtime library option (/MT, /MD) of the projects when compiling depending on your needs, it should match the other libraries used in your main project.

#38
ParaToxic

ParaToxic
  • Developer
  • 403 posts
I made it like the way you said.But there are the same errors.I don't think that the problem is that ftgl.lib isn't included correctly because when there isn't this library the compiler says that.
That's too bad because I like your gui very much :)

I would try to make it running.

One question.Are GuiFont.h and GuiFontManager use Soil??

#39
Patrik

Patrik
  • Developer
  • 32 posts

View PostParaToxic, on 11 January 2012 - 05:08 PM, said:

I made it like the way you said.But there are the same errors.I don't think that the problem is that ftgl.lib isn't included correctly because when there isn't this library the compiler says that.
That's too bad because I like your gui very much :)

I would try to make it running.

One question.Are GuiFont.h and GuiFontManager use Soil??

No soil is used for loading images and is used by the GuiImage component.

I'm suspecting ftgl because that is used both in the GuiFont and GuiFontManager. And also from the error messages it seems like ftgl would be missing. Both FTTextureFont & FTFont are from the ftgl library.

I tried recreating the problem myself.
I tried compiling pfwgui without providing ftgl.lib and it did not complain but built successfully. But then when trying to link pfwgui into my project, I got the same errors.

1>------ Build started: Project: PFWTest, Configuration: Debug Win32 ------
1>Linking...
1>PFWTest.obj : error LNK2019: unresolved external symbol "public: bool __thiscall GuiFontManager::setDefaultFont(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?setDefaultFont@GuiFontManager@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z) referenced in function "private: void __thiscall GuiFontManager::loadFonts(void)" (?loadFonts@GuiFontManager@@AAEXXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(char const *)" (?Attach@FTFont@@UAE_NPBD@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(char const *)" (?Attach@FTFont@@UAE_NPBD@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::GlyphLoadFlags(int)" (?GlyphLoadFlags@FTFont@@UAEXH@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::GlyphLoadFlags(int)" (?GlyphLoadFlags@FTFont@@UAEXH@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::CharMap(enum FT_Encoding_)" (?CharMap@FTFont@@UAE_NW4FT_Encoding_@@@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::CharMap(enum FT_Encoding_)" (?CharMap@FTFont@@UAE_NW4FT_Encoding_@@@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::CharMapCount(void)const " (?CharMapCount@FTFont@@UBEIXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::CharMapCount(void)const " (?CharMapCount@FTFont@@UBEIXZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual enum FT_Encoding_ * __thiscall FTFont::CharMapList(void)" (?CharMapList@FTFont@@UAEPAW4FT_Encoding_@@XZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual enum FT_Encoding_ * __thiscall FTFont::CharMapList(void)" (?CharMapList@FTFont@@UAEPAW4FT_Encoding_@@XZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::FaceSize(void)const " (?FaceSize@FTFont@@UBEIXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::FaceSize(void)const " (?FaceSize@FTFont@@UBEIXZ) referenced in function "public: __thiscall GuiFont::GuiFont(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,bool,bool)" (??0GuiFont@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H_N1@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::FaceSize(unsigned int,unsigned int)" (?FaceSize@FTFont@@UAE_NII@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::FaceSize(unsigned int,unsigned int)" (?FaceSize@FTFont@@UAE_NII@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Depth(float)" (?Depth@FTFont@@UAEXM@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Depth(float)" (?Depth@FTFont@@UAEXM@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float,float)" (?Outset@FTFont@@UAEXMM@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float,float)" (?Outset@FTFont@@UAEXMM@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float)" (?Outset@FTFont@@UAEXM@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float)" (?Outset@FTFont@@UAEXM@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::UseDisplayList(bool)" (?UseDisplayList@FTFont@@UAEX_N@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "public: virtual void __thiscall FTFont::UseDisplayList(bool)" (?UseDisplayList@FTFont@@UAEX_N@Z) referenced in function "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Ascender(void)const " (?Ascender@FTFont@@UBEMXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Ascender(void)const " (?Ascender@FTFont@@UBEMXZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Descender(void)const " (?Descender@FTFont@@UBEMXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Descender(void)const " (?Descender@FTFont@@UBEMXZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::LineHeight(void)const " (?LineHeight@FTFont@@UBEMXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::LineHeight(void)const " (?LineHeight@FTFont@@UBEMXZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(wchar_t const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PB_WHVFTPoint@@1@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(wchar_t const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PB_WHVFTPoint@@1@Z) referenced in function __ehhandler$??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(char const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PBDHVFTPoint@@1@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(char const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PBDHVFTPoint@@1@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(wchar_t const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPB_WHVFTPoint@@@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(wchar_t const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPB_WHVFTPoint@@@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(char const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPBDHVFTPoint@@@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(char const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPBDHVFTPoint@@@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(wchar_t const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PB_WHV2@1H@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(wchar_t const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PB_WHV2@1H@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(char const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PBDHV2@1H@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(char const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PBDHV2@1H@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall FTFont::Error(void)const " (?Error@FTFont@@UBEHXZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall FTFont::Error(void)const " (?Error@FTFont@@UBEHXZ)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "protected: virtual class FTGlyph * __thiscall FTTextureFont::MakeGlyph(struct FT_GlyphSlotRec_ *)" (?MakeGlyph@FTTextureFont@@MAEPAVFTGlyph@@PAUFT_GlyphSlotRec_@@@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "protected: virtual class FTGlyph * __thiscall FTTextureFont::MakeGlyph(struct FT_GlyphSlotRec_ *)" (?MakeGlyph@FTTextureFont@@MAEPAVFTGlyph@@PAUFT_GlyphSlotRec_@@@Z)
1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall FTTextureFont::~FTTextureFont(void)" (__imp_??1FTTextureFont@@UAE@XZ) referenced in function "public: virtual void * __thiscall FTTextureFont::`scalar deleting destructor'(unsigned int)" (??_GFTTextureFont@@UAEPAXI@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall FTTextureFont::~FTTextureFont(void)" (__imp_??1FTTextureFont@@UAE@XZ)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall FTFont::BBox(char const *,float &,float &,float &,float &,float &,float &)" (__imp_?BBox@FTFont@@QAEXPBDAAM11111@Z) referenced in function "public: float __thiscall GuiFont::getTextHeight(char *)" (?getTextHeight@GuiFont@@QAEMPAD@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTPoint::FTPoint(void)" (__imp_??0FTPoint@@QAE@XZ) referenced in function "public: void __thiscall GuiFont::print(float,float,char const *,class GuiColor *)" (?print@GuiFont@@QAEXMMPBDPAVGuiColor@@@Z)
1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTPoint::FTPoint(double,double,double)" (__imp_??0FTPoint@@QAE@NNN@Z) referenced in function "public: void __thiscall GuiFont::print(float,float,char const *,class GuiColor *)" (?print@GuiFont@@QAEXMMPBDPAVGuiColor@@@Z)
1>E:\Dev\Leadwerks projects\PFWTest2\PFWTest\Debug\PFWTest.exe : fatal error LNK1120: 29 unresolved externals
1>Build log was saved at "file://e:\Dev\Leadwerks projects\PFWTest2\PFWTest\PFWTest\Debug\BuildLog.htm"
1>PFWTest - 55 error(s), 0 warning(s)


#40
ParaToxic

ParaToxic
  • Developer
  • 403 posts
So what to do?When I compiled the lib to FPWGui.lib ftgl.lib was included ,because without I became a compiler error.