Re: [Plib-users] plib-users Digest, Vol 7, Issue 2
Brought to you by:
sjbaker
From: Ana-Maria R. <ro_...@ya...> - 2006-12-11 10:33:30
|
Hello!=0A=0AI did what you said, and something strange is going on (or at l= east i can't understand it):=0ASome of the examples work, but for others i = still get the "unresolved external symbol..." errors. =0AAnd=0Ai get the sa= me errors when i try to run my own .cpp file. (my file=0Acontains the same = code as the project in simple.cxx, which works when i=0Arun it from the exa= mples list). Also, if i move the example simple.cxx=0Ato another folder an= d open it and try to build it there, i get the same=0Aerrors. Any ideas, pl= ease? =0A=0AThank you,=0AAna=0A=0ADate: Mon, 11 Dec 2006 09:12:51 +0100=0AF= rom: "Tinoshi Kitazawa" <ti...@li...>=0ASubject: Re: [Plib-users] Ins= talling plib on windows=0ATo: "PLIB Users" <pli...@li...= t>=0AMessage-ID: <002901c71cfc$273b9120$0201a8c0@TINOSHILAPTOP>=0AContent-T= ype: text/plain; charset=3D"iso-8859-1"=0A=0A> But I only found *_d.lib fi= les, and not *.lib in the plib folder. Is this the =0A> way it's supposed t= o be?=0A=0AOpen the plib.dsw and recompile in both Debug and Release mode. = I think that by default only the Debug version will be compiled, thus creat= ing the *_d.lib files and not the *.lib ones. =0AWell, 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 erro= r, and se what's wrong... =0A=0AGiorgio=0A=0A=0A=0A=0A ----- Original Mess= age ----- =0A From: Ana-Maria Rosioara =0A To: pli...@li...urcefor= ge.net =0A Sent: Sunday, December 10, 2006 10:17 PM=0A Subject: Re: [Plib= -users] Installing plib on windows=0A=0A=0A Thank you for your answer, but= , unfortunatelly, it didn't solve the problem. =0A I copied all the .lib f= iles 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 suppo= sed to be?=0A=0A Thanks,=0A Ana=0A=0A Message: 2=0A Date: Sun, 10 Dec 2= 006 14:11:47 +0100=0A From: "Tinoshi Kitazawa" <ti...@li...>=0A Sub= ject: Re: [Plib-users] Installing plib on windows=0A To: "PLIB Users" <pli= b-...@li...>=0A Message-ID: <003b01c71c5c$bfe65220$0301a= 8c0@TINOSHILAPTOP>=0A Content-Type: text/plain; charset=3D"iso-8859-1"=0A= =0A Hi!=0A=0A 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... =0A=0A On my machine folders are:=0A=0A C:\Pro= gram Files\Microsoft Visual Studio\VC98\include=0A C:\Program Files\Micros= oft Visual Studio\VC98\lib=0A=0A in the first one (the 'include' folder) y= ou should have (if not, create a new one) a 'plib' folder, in which you soh= uld put all the plib's .h files. This is needed to make sure that when exam= ples use: =0A=0A #include <plib/XXX.h> =0A=0A plib headers are found.. = =0A=0A 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 t= he default path of MSVC6.0, so the linker cannot find them. =0A=0A > canno= t open file "ul_d.lib"=0A > although the file exists in the plib folder.= =0A=0A I quite sure that those files should not be (by default) in a 'plib= ' subfolder... just copy them into the 'lib' one. =0A Hope it helps... I h= ad the same problem once... =0A=0A Giorgio!=0A ----- Original Message -= ---- =0A From: Ana-Maria Rosioara =0A To: pli...@li...urceforg= e.net =0A Sent: Sunday, December 10, 2006 12:18 PM=0A Subject: [Plib-= users] Installing plib on windows=0A=0A=0A Hello!=0A=0A I've just ins= talled the plib on my computer, but 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: put the contents of the archieve in the = includes/plib folder, opened the workspace "plib.dsw" in MSVC++, selected t= he "plib" project, and built it (using "Rebuild All" in the Build menu). = =0A=0A But when I try to run one of the examples (for example pw_demo), = i get an error: =0A cannot open file "ul_d.lib"=0A although the f= ile exists in the plib folder.=0A=0A I tried to copy+paste the example p= osted 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:=0A=0A tst1.obj : error LNK2001: unresolved external sym= bol "int __cdecl puMouse(int,int)" (?puMouse@@YAHHH@Z)=0A tst1.obj : err= or LNK2001: unresolved external symbol "int __cdecl puMouse(int,int,int,int= )" (?puMouse@@YAHHHHH@Z)=0A tst1.obj : error LNK2001: unresolved externa= l symbol "void __cdecl puDisplay(void)" (?puDisplay@@YAXXZ)=0A tst1.obj = : error LNK2001: unresolved external symbol "void __cdecl sgdMakeCoordMat4(= double (* const)[4],double,double,double,double,double,double)" (?sgdMakeCo= ordMat4@@YAXQAY03NNNNNNN@Z)=0A tst1.obj : error LNK2001: unresolved exte= rnal symbol "void __cdecl puPostRefresh(void)" (?puPostRefresh@@YAXXZ)=0A = tst1.obj : error LNK2001: unresolved external symbol "public: virtual voi= d __thiscall puButton::draw(int,int)" (?draw@puButton@@UAEXHH@Z)=0A tst1= .obj : error LNK2001: unresolved external symbol "public: virtual int __thi= scall puObject::checkKey(int,int)" (?checkKey@puObject@@UAEHHH@Z)=0A tst= 1.obj : error LNK2001: unresolved external symbol "public: virtual int __th= iscall puObject::checkHit(int,int,int,int)" (?checkHit@puObject@@UAEHHHHH@Z= )=0A tst1.obj : error LNK2001: unresolved external symbol "public: virtu= al void __thiscall puObject::recalc_bbox(void)" (?recalc_bbox@puObject@@UAE= XXZ)=0A tst1.obj : error LNK2001: unresolved external symbol "public: vi= rtual void __thiscall puOneShot::doHit(int,int,int,int)" (?doHit@puOneShot@= @UAEXHHHH@Z)=0A tst1.obj : error LNK2001: unresolved external symbol "pr= otected: virtual void __thiscall puObject::draw_label(int,int)" (?draw_labe= l@puObject@@MAEXHH@Z)=0A tst1.obj : error LNK2001: unresolved external s= ymbol "protected: virtual void __thiscall puObject::draw_legend(int,int)" (= ?draw_legend@puObject@@MAEXHH@Z)=0A tst1.obj : error LNK2001: unresolved= external symbol "public: virtual void __thiscall puValue::setValue(char co= nst *)" (?setValue@puValue@@UAEXPBD@Z)=0A tst1.obj : error LNK2001: unre= solved external symbol "public: virtual void * __thiscall puOneShot::RTTI_c= ast(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 "prot= ected: void __thiscall puValue::re_eval(void)" (?re_eval@puValue@@IAEXXZ)= =0A tst1.obj : error LNK2001: unresolved external symbol "int __cdecl pu= GetWindow(void)" (?puGetWindow@@YAHXZ)=0A tst1.obj : error LNK2001: unre= solved external symbol "public: virtual void __thiscall puButton::doHit(int= ,int,int,int)" (?doHit@puButton@@UAEXHHHH@Z)=0A tst1.obj : error LNK2001= : unresolved external symbol "public: virtual void * __thiscall puButton::R= TTI_cast(class ulRTTItypeid)" (?RTTI_cast@puButton@@UAEPAXVulRTTItypeid@@@Z= )=0A tst1.obj : error LNK2001: unresolved external symbol "public: __thi= scall puObject::puObject(int,int,int,int)" (??0puObject@@QAE@HHHH@Z)=0A = tst1.obj : error LNK2001: unresolved external symbol "protected: static cla= ss ulRTTITypeinfo const puButton::RTTI_obj" (?RTTI_obj@puButton@@1VulRTTITy= peinfo@@B)=0A tst1.obj : error LNK2001: unresolved external symbol "publ= ic: virtual __thiscall puObject::~puObject(void)" (??1puObject@@UAE@XZ)=0A = tst1.obj : error LNK2001: unresolved external symbol "protected: static = class ulRTTITypeinfo const puOneShot::RTTI_obj" (?RTTI_obj@puOneShot@@1VulR= TTITypeinfo@@B)=0A tst1.obj : error LNK2001: unresolved external symbol = "void __cdecl puRealInit(void)" (?puRealInit@@YAXXZ)=0A tst1.obj : error= LNK2001: unresolved external symbol "void __cdecl puSetWindowFuncs(int (__= cdecl*)(void),void (__cdecl*)(int),void (__cdecl*)(int *,int *),void (__cde= cl*)(int,int))" (?puSetWindowFuncs@@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 ha= s the best spam protection around =0A http://mail.yahoo.com =0A=0A=0A -= ---------------------------------------------------------------------------= --=0A=0A=0A ------------------------------------------------------------= -------------=0A Take Surveys. Earn Cash. Influence the Future of IT=0A = Join SourceForge.net's Techsay panel and you'll get the chance to share = your=0A opinions on IT & business topics through brief surveys - and ear= n cash=0A http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourcef= orge&CID=3DDEVDEV=0A=0A=0A -----------------------------------------------= -------------------------------=0A=0A=0A _______________________________= ________________=0A plib-users mailing list=0A pli...@li...urc= eforge.net=0A https://lists.sourceforge.net/lists/listinfo/plib-users=0A= -------------- next part --------------=0A An HTML attachment was scrubb= ed...=0A URL: http://sourceforge.net/mailarchive/forum.php?forum=3Dplib-us= ers/attachments/20061210/4614bba2/attachment.html =0A=0A -----------------= -------------=0A=0A ------------------------------------------------------= -------------------=0A Take Surveys. Earn Cash. Influence the Future of IT= =0A Join SourceForge.net's Techsay panel and you'll get the chance to shar= e your=0A opinions on IT & business topics through brief surveys - and ear= n cash=0A http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourcefor= ge&CID=3DDEVDEV=0A=0A ------------------------------=0A=0A ______________= _________________________________=0A plib-users mailing list=0A plib-user= s...@li...=0A https://lists.sourceforge.net/lists/listinfo/pl= ib-users=0A=0A=0A End of plib-users Digest, Vol 7, Issue 1=0A ***********= *****************************=0A=0A=0A=0A=0A=0A----------------------------= --------------------------------------------------=0A Need a quick answer?= Get one in minutes from people who know. Ask your question on Yahoo! Answe= rs.=0A=0A=0A---------------------------------------------------------------= ---------------=0A=0A=0A -------------------------------------------------= ------------------------=0A Take Surveys. Earn Cash. Influence the Future = of IT=0A Join SourceForge.net's Techsay panel and you'll get the chance to= share your=0A opinions on IT & business topics through brief surveys - an= d earn cash=0A http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsour= ceforge&CID=3DDEVDEV=0A=0A=0A----------------------------------------------= --------------------------------=0A=0A=0A ________________________________= _______________=0A plib-users mailing list=0A pli...@li...urceforg= e.net=0A https://lists.sourceforge.net/lists/listinfo/plib-users=0A-------= ------- next part --------------=0AAn HTML attachment was scrubbed...=0AURL= : http://sourceforge.net/mailarchive/forum.php?forum=3Dplib-users/attachmen= ts/20061211/1ab16886/attachment.html =0A=0A------------------------------= =0A=0A---------------------------------------------------------------------= ----=0ATake Surveys. Earn Cash. Influence the Future of IT=0AJoin SourceFor= ge.net's Techsay panel and you'll get the chance to share your=0Aopinions o= n IT & business topics through brief surveys - and earn cash=0Ahttp://www.t= echsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A=0A--= ----------------------------=0A=0A_________________________________________= ______=0Aplib-users mailing list=0Ap...@li...=0Ahttps= ://lists.sourceforge.net/lists/listinfo/plib-users=0A=0A=0AEnd of plib-user= s Digest, Vol 7, Issue 2=0A****************************************=0A=0A= =0A=0A=0A=0A=0A=0A =0A_____________________________________________________= _______________________________=0AAny questions? Get answers on any topic a= t www.Answers.yahoo.com. Try it now. |