Thread: Re: [Plib-users] Installing plib on windows
Brought to you by:
sjbaker
From: Ana-Maria R. <ro_...@ya...> - 2006-12-10 21:17:34
|
Thank you for your answer, but, unfortunatelly, it didn't solve the problem= . =0AI copied all the .lib files in the Lib folder, but i still get the sam= e errors. But I only found *_d.lib files, and not *.lib in the plib folder= . Is this the way it's supposed to be?=0A=0AThanks,=0AAna=0A=0AMessage: 2= =0ADate: Sun, 10 Dec 2006 14:11:47 +0100=0AFrom: "Tinoshi Kitazawa" <tinosh= i...@li...>=0ASubject: Re: [Plib-users] Installing plib on windows=0ATo: "= PLIB Users" <pli...@li...>=0AMessage-ID: <003b01c71c5c$= bfe65220$0301a8c0@TINOSHILAPTOP>=0AContent-Type: text/plain; charset=3D"iso= -8859-1"=0A=0AHi!=0A=0AMaybe you've already done that, but just double chec= k that the MSVC6.0 include and lib folders contain all the files needed by = plib in order to work properly... =0A=0AOn my machine folders are:=0A=0AC:\= Program Files\Microsoft Visual Studio\VC98\include=0AC:\Program Files\Micro= soft Visual Studio\VC98\lib=0A=0Ain the first one (the 'include' folder) yo= u should have (if not, create a new one) a 'plib' folder, in which you sohu= ld put all the plib's .h files. This is needed to make sure that when examp= les use: =0A=0A#include <plib/XXX.h> =0A=0Aplib headers are found.. =0A=0At= hen check if in the 'lib' folder you have copied all the *.lib and *_d.lib = files. Maybe you have put those files in a folder that is not on the defaul= t path of MSVC6.0, so the linker cannot find them. =0A=0A> cannot open file= "ul_d.lib"=0A> although the file exists in the plib folder.=0A=0AI quite s= ure that those files should not be (by default) in a 'plib' subfolder... ju= st copy them into the 'lib' one. =0AHope it helps... I had the same problem= once... =0A =0AGiorgio!=0A ----- Original Message ----- =0A From: Ana-Ma= ria Rosioara =0A To: pli...@li... =0A Sent: Sunday, D= ecember 10, 2006 12:18 PM=0A Subject: [Plib-users] Installing plib on wind= ows=0A=0A=0A Hello!=0A=0A I've just installed the plib on my computer, bu= t there seems to be a problem:=0A I'm using the VisualStudio 6.0, and i've= followed all the installation steps i've found in the readme.win32 file: p= ut the contents of the archieve in the includes/plib folder, opened the wor= kspace "plib.dsw" in MSVC++, selected the "plib" project, and built it (usi= ng "Rebuild All" in the Build menu). =0A=0A But when I try to run one of t= he examples (for example pw_demo), i get an error: =0A cannot open fil= e "ul_d.lib"=0A although the file exists in the plib folder.=0A=0A I trie= d to copy+paste the example posted on the website, the one with a button th= at prints "Hello world!", and when i compile it, everything is ok, but then= when i try to run it, a get a lot of errors:=0A=0A tst1.obj : error LNK20= 01: unresolved external symbol "int __cdecl puMouse(int,int)" (?puMouse@@YA= HHH@Z)=0A tst1.obj : error LNK2001: unresolved external symbol "int __cdec= l puMouse(int,int,int,int)" (?puMouse@@YAHHHHH@Z)=0A tst1.obj : error LNK2= 001: unresolved external symbol "void __cdecl puDisplay(void)" (?puDisplay@= @YAXXZ)=0A tst1.obj : error LNK2001: unresolved external symbol "void __cd= ecl sgdMakeCoordMat4(double (* const)[4],double,double,double,double,double= ,double)" (?sgdMakeCoordMat4@@YAXQAY03NNNNNNN@Z)=0A tst1.obj : error LNK20= 01: unresolved external symbol "void __cdecl puPostRefresh(void)" (?puPostR= efresh@@YAXXZ)=0A tst1.obj : error LNK2001: unresolved external symbol "pu= blic: virtual void __thiscall puButton::draw(int,int)" (?draw@puButton@@UAE= XHH@Z)=0A tst1.obj : error LNK2001: unresolved external symbol "public: vi= rtual int __thiscall puObject::checkKey(int,int)" (?checkKey@puObject@@UAEH= HH@Z)=0A tst1.obj : error LNK2001: unresolved external symbol "public: vir= tual int __thiscall puObject::checkHit(int,int,int,int)" (?checkHit@puObjec= t@@UAEHHHHH@Z)=0A tst1.obj : error LNK2001: unresolved external symbol "pu= blic: virtual void __thiscall puObject::recalc_bbox(void)" (?recalc_bbox@pu= Object@@UAEXXZ)=0A tst1.obj : error LNK2001: unresolved external symbol "p= ublic: virtual void __thiscall puOneShot::doHit(int,int,int,int)" (?doHit@p= uOneShot@@UAEXHHHH@Z)=0A tst1.obj : error LNK2001: unresolved external sym= bol "protected: virtual void __thiscall puObject::draw_label(int,int)" (?dr= aw_label@puObject@@MAEXHH@Z)=0A tst1.obj : error LNK2001: unresolved exter= nal symbol "protected: virtual void __thiscall puObject::draw_legend(int,in= t)" (?draw_legend@puObject@@MAEXHH@Z)=0A tst1.obj : error LNK2001: unresol= ved external symbol "public: virtual void __thiscall puValue::setValue(char= const *)" (?setValue@puValue@@UAEXPBD@Z)=0A tst1.obj : error LNK2001: unr= esolved external symbol "public: virtual void * __thiscall puOneShot::RTTI_= cast(class ulRTTItypeid)" (?RTTI_cast@puOneShot@@UAEPAXVulRTTItypeid@@@Z)= =0A tst1.obj : error LNK2001: unresolved external symbol "protected: void = __thiscall puValue::copy_stringval(char const *)" (?copy_stringval@puValue@= @IAEXPBD@Z)=0A tst1.obj : error LNK2001: unresolved external symbol "prote= cted: void __thiscall puValue::re_eval(void)" (?re_eval@puValue@@IAEXXZ)=0A= tst1.obj : error LNK2001: unresolved external symbol "int __cdecl puGetWi= ndow(void)" (?puGetWindow@@YAHXZ)=0A tst1.obj : error LNK2001: unresolved = external symbol "public: virtual void __thiscall puButton::doHit(int,int,in= t,int)" (?doHit@puButton@@UAEXHHHH@Z)=0A tst1.obj : error LNK2001: unresol= ved external symbol "public: virtual void * __thiscall puButton::RTTI_cast(= class ulRTTItypeid)" (?RTTI_cast@puButton@@UAEPAXVulRTTItypeid@@@Z)=0A tst= 1.obj : error LNK2001: unresolved external symbol "public: __thiscall puObj= ect::puObject(int,int,int,int)" (??0puObject@@QAE@HHHH@Z)=0A tst1.obj : er= ror LNK2001: unresolved external symbol "protected: static class ulRTTIType= info const puButton::RTTI_obj" (?RTTI_obj@puButton@@1VulRTTITypeinfo@@B)=0A= tst1.obj : error LNK2001: unresolved external symbol "public: virtual __t= hiscall puObject::~puObject(void)" (??1puObject@@UAE@XZ)=0A tst1.obj : err= or LNK2001: unresolved external symbol "protected: static class ulRTTITypei= nfo const puOneShot::RTTI_obj" (?RTTI_obj@puOneShot@@1VulRTTITypeinfo@@B)= =0A tst1.obj : error LNK2001: unresolved external symbol "void __cdecl puR= ealInit(void)" (?puRealInit@@YAXXZ)=0A tst1.obj : error LNK2001: unresolve= d external symbol "void __cdecl puSetWindowFuncs(int (__cdecl*)(void),void = (__cdecl*)(int),void (__cdecl*)(int *,int *),void (__cdecl*)(int,int))" (?p= uSetWindowFuncs@@YAXP6AHXZP6AXH@ZP6AXPAH2@ZP6AXHH@Z@Z)=0A Debug/tst1.exe := fatal error LNK1120: 25 unresolved externals=0A Error executing link.exe.= =0A=0A Please, how can I solve this problem? =0A=0A Thank you,=0A Ana=0A= =0A=0A __________________________________________________=0A Do You Yahoo= !?=0A Tired of spam? Yahoo! Mail has the best spam protection around =0A = http://mail.yahoo.com =0A=0A=0A--------------------------------------------= ----------------------------------=0A=0A=0A ------------------------------= -------------------------------------------=0A Take Surveys. Earn Cash. In= fluence the Future of IT=0A Join SourceForge.net's Techsay panel and you'l= l get the chance to share your=0A opinions on IT & business topics through= brief surveys - and earn cash=0A http://www.techsay.com/default.php?page= =3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A=0A=0A--------------------------= ----------------------------------------------------=0A=0A=0A ____________= ___________________________________=0A plib-users mailing list=0A plib-us= er...@li...=0A https://lists.sourceforge.net/lists/listinfo/= plib-users=0A-------------- next part --------------=0AAn HTML attachment w= as scrubbed...=0AURL: http://sourceforge.net/mailarchive/forum.php?forum=3D= plib-users/attachments/20061210/4614bba2/attachment.html =0A=0A------------= ------------------=0A=0A---------------------------------------------------= ----------------------=0ATake Surveys. Earn Cash. Influence the Future of I= T=0AJoin SourceForge.net's Techsay panel and you'll get the chance to share= your=0Aopinions on IT & business topics through brief surveys - and earn c= ash=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV=0A=0A------------------------------=0A=0A_______________________= ________________________=0Aplib-users mailing list=0Ap...@li...urc= eforge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/plib-users=0A=0A= =0AEnd of plib-users Digest, Vol 7, Issue 1=0A*****************************= ***********=0A=0A=0A=0A=0A=0A=0A=0A =0A____________________________________= ________________________________________________=0ANeed a quick answer? Get= one in minutes from people who know.=0AAsk your question on www.Answers.ya= hoo.com |
From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2006-12-11 18:05:22
|
Ana, If you unzipped the PLIB distribution file into all the directories and just built things as they are, and if your version of MSVC is fairly recent, the paths should be set properly. Here is what is supposed to happen: When you unzip the PLIB distribution file, you should get the following structure (this is only part of it): Plib - contains "plib.dsw" Examples - contains "plib_examples.dsw" Src - contains subdirectories with the various example programs Src Fnt - contains the "fnt" library source Js - contains the "js" library source ... etc. After you load "plib.dsw" into MSVC and invoke the "Rebuild All" command, the "post-build step" should copy all the necessary header files and library files into the main "Plib" directory. My copy of MSVC at work does this; my older student copy of MSVC at home does not. When you load "plib_examples.dsw" into MSVC, all the necessary paths should be set already. If you look at the project settings (say, for "pw_demo") you should find under the "C/C++" tab, "Preprocessor" category, the following for "Additional include directories:" ..\..\..\..\ This causes the preprocessor to look in the directory ABOVE the main Plib directory for its include files; thus including "<plib/pw.h>" will cause the preprocessor to look in the main Plib directory for that file. Similarly, in the project settings under the "Link" tab, "Input" category, you should find the following under "Additional library path:" ..\..\..\..\plib This causes the loader to look in the main Plib directory for the library files "ul_d.lib" and "pw_d.lib". The example given on the web site is, I think, the "Simple" project in the "plib_examples" workspace. You probably got all the errors because you did not set the library path in the project settings. Please let me know if this solves your problems or if there are further errors. John F. Fay Technical Fellow Jacobs/Sverdrup TEAS Group 850-883-1294 |
From: Tinoshi K. <ti...@li...> - 2006-12-11 08:12:50
|
> But I only found *_d.lib files, and not *.lib in the plib folder. Is = this the=20 > way it's supposed to be? Open the plib.dsw and recompile in both Debug and Release mode. I think = that by default only the Debug version will be compiled, thus creating = the *_d.lib files and not the *.lib ones. =20 Well, this should not be related with your problem, by the way... It = seems that you cannot open a *_d.lib file, and that you have it... so... = I will try to reproduce your error, and se what's wrong...=20 Giorgio ----- Original Message -----=20 From: Ana-Maria Rosioara=20 To: pli...@li...=20 Sent: Sunday, December 10, 2006 10:17 PM Subject: Re: [Plib-users] Installing plib on windows Thank you for your answer, but, unfortunatelly, it didn't solve the = problem.=20 I copied all the .lib files in the Lib folder, but i still get the = same errors. But I only found *_d.lib files, and not *.lib in the plib = folder. Is this the way it's supposed to be? Thanks, Ana Message: 2 Date: Sun, 10 Dec 2006 14:11:47 +0100 From: "Tinoshi Kitazawa" <ti...@li...> Subject: Re: [Plib-users] Installing plib on windows To: "PLIB Users" <pli...@li...> Message-ID: <003b01c71c5c$bfe65220$0301a8c0@TINOSHILAPTOP> Content-Type: text/plain; charset=3D"iso-8859-1" Hi! Maybe you've already done that, but just double check that the MSVC6.0 = include and lib folders contain all the files needed by plib in order to = work properly...=20 On my machine folders are: C:\Program Files\Microsoft Visual Studio\VC98\include C:\Program Files\Microsoft Visual Studio\VC98\lib in the first one (the 'include' folder) you should have (if not, = create a new one) a 'plib' folder, in which you sohuld put all the = plib's .h files. This is needed to make sure that when examples use:=20 #include <plib/XXX.h>=20 plib headers are found..=20 then check if in the 'lib' folder you have copied all the *.lib and = *_d.lib files. Maybe you have put those files in a folder that is not on = the default path of MSVC6.0, so the linker cannot find them.=20 > cannot open file "ul_d.lib" > although the file exists in the plib folder. I quite sure that those files should not be (by default) in a 'plib' = subfolder... just copy them into the 'lib' one.=20 Hope it helps... I had the same problem once...=20 Giorgio! ----- Original Message -----=20 From: Ana-Maria Rosioara=20 To: pli...@li...=20 Sent: Sunday, December 10, 2006 12:18 PM Subject: [Plib-users] Installing plib on windows Hello! I've just installed the plib on my computer, but there seems to be a = problem: I'm using the VisualStudio 6.0, and i've followed all the = installation steps i've found in the readme.win32 file: put the contents = of the archieve in the includes/plib folder, opened the workspace = "plib.dsw" in MSVC++, selected the "plib" project, and built it (using = "Rebuild All" in the Build menu).=20 But when I try to run one of the examples (for example pw_demo), i = get an error:=20 cannot open file "ul_d.lib" although the file exists in the plib folder. I tried to copy+paste the example posted on the website, the one = with a button that prints "Hello world!", and when i compile it, = everything is ok, but then when i try to run it, a get a lot of errors: tst1.obj : error LNK2001: unresolved external symbol "int __cdecl = puMouse(int,int)" (?puMouse@@YAHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "int __cdecl = puMouse(int,int,int,int)" (?puMouse@@YAHHHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "void __cdecl = puDisplay(void)" (?puDisplay@@YAXXZ) tst1.obj : error LNK2001: unresolved external symbol "void __cdecl = sgdMakeCoordMat4(double (* = const)[4],double,double,double,double,double,double)" = (?sgdMakeCoordMat4@@YAXQAY03NNNNNNN@Z) tst1.obj : error LNK2001: unresolved external symbol "void __cdecl = puPostRefresh(void)" (?puPostRefresh@@YAXXZ) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void __thiscall puButton::draw(int,int)" = (?draw@puButton@@UAEXHH@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual int __thiscall puObject::checkKey(int,int)" = (?checkKey@puObject@@UAEHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual int __thiscall puObject::checkHit(int,int,int,int)" = (?checkHit@puObject@@UAEHHHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void __thiscall puObject::recalc_bbox(void)" = (?recalc_bbox@puObject@@UAEXXZ) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void __thiscall puOneShot::doHit(int,int,int,int)" = (?doHit@puOneShot@@UAEXHHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "protected: = virtual void __thiscall puObject::draw_label(int,int)" = (?draw_label@puObject@@MAEXHH@Z) tst1.obj : error LNK2001: unresolved external symbol "protected: = virtual void __thiscall puObject::draw_legend(int,int)" = (?draw_legend@puObject@@MAEXHH@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void __thiscall puValue::setValue(char const *)" = (?setValue@puValue@@UAEXPBD@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void * __thiscall puOneShot::RTTI_cast(class ulRTTItypeid)" = (?RTTI_cast@puOneShot@@UAEPAXVulRTTItypeid@@@Z) tst1.obj : error LNK2001: unresolved external symbol "protected: = void __thiscall puValue::copy_stringval(char const *)" = (?copy_stringval@puValue@@IAEXPBD@Z) tst1.obj : error LNK2001: unresolved external symbol "protected: = void __thiscall puValue::re_eval(void)" (?re_eval@puValue@@IAEXXZ) tst1.obj : error LNK2001: unresolved external symbol "int __cdecl = puGetWindow(void)" (?puGetWindow@@YAHXZ) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void __thiscall puButton::doHit(int,int,int,int)" = (?doHit@puButton@@UAEXHHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual void * __thiscall puButton::RTTI_cast(class ulRTTItypeid)" = (?RTTI_cast@puButton@@UAEPAXVulRTTItypeid@@@Z) tst1.obj : error LNK2001: unresolved external symbol "public: = __thiscall puObject::puObject(int,int,int,int)" = (??0puObject@@QAE@HHHH@Z) tst1.obj : error LNK2001: unresolved external symbol "protected: = static class ulRTTITypeinfo const puButton::RTTI_obj" = (?RTTI_obj@puButton@@1VulRTTITypeinfo@@B) tst1.obj : error LNK2001: unresolved external symbol "public: = virtual __thiscall puObject::~puObject(void)" (??1puObject@@UAE@XZ) tst1.obj : error LNK2001: unresolved external symbol "protected: = static class ulRTTITypeinfo const puOneShot::RTTI_obj" = (?RTTI_obj@puOneShot@@1VulRTTITypeinfo@@B) tst1.obj : error LNK2001: unresolved external symbol "void __cdecl = puRealInit(void)" (?puRealInit@@YAXXZ) tst1.obj : error LNK2001: unresolved external symbol "void __cdecl = puSetWindowFuncs(int (__cdecl*)(void),void (__cdecl*)(int),void = (__cdecl*)(int *,int *),void (__cdecl*)(int,int))" = (?puSetWindowFuncs@@YAXP6AHXZP6AXH@ZP6AXPAH2@ZP6AXHH@Z@Z) Debug/tst1.exe : fatal error LNK1120: 25 unresolved externals Error executing link.exe. Please, how can I solve this problem?=20 Thank you, Ana __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 = -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to = share your opinions on IT & business topics through brief surveys - and earn = cash = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV = -------------------------------------------------------------------------= ----- _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: = http://sourceforge.net/mailarchive/forum.php?forum=3Dplib-users/attachmen= ts/20061210/4614bba2/attachment.html=20 ------------------------------ = -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to = share your opinions on IT & business topics through brief surveys - and earn cash = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV ------------------------------ _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users End of plib-users Digest, Vol 7, Issue 1 **************************************** -------------------------------------------------------------------------= ----- Need a quick answer? Get one in minutes from people who know. Ask your = question on Yahoo! Answers. -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to = share your opinions on IT & business topics through brief surveys - and earn cash = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV -------------------------------------------------------------------------= ----- _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |