Hi, Here you have my source files.
Thanks, Aida El 1 d’abril de 2011 11:40, Xavier Planes <[email protected]> ha escrit: > Hi Aida, > > > > I’m sorry but I cannot reproduce your linking error. I > followed the steps to create a new library and a new plugin and added the > source code you sent me using tl::Template class inside the plugin: > > > https://sourceforge.net/apps/mediawiki/gimias/index.php?title=HowToCreateYourLibrary > > > https://sourceforge.net/apps/mediawiki/gimias/index.php?title=HowToCreateYourPlugin > > > > Could you please send me your source files?, so I can try > to reproduce the error in my computer. > > > > Thanks, > > Xavi > > > > *From:* Aida Ninyerola [mailto:[email protected]] > *Sent:* jueves, 31 de marzo de 2011 16:23 > *To:* Xavier Planes > *Cc:* [email protected] > *Subject:* Re: [Gimias-developers] error en ús de llibreria pròpia > > > > Hi, > > I've just followed all the steps of the GimiasUserManual -> Develop your > own project for GIMIAS. > I've created my own library as it is suggested. I've copied the ’tlFirst’ > folder, renamed it (’tlRec2DFDP’), renamed the source and include files > (’tlRec2DFDP.cpp’ and ’tlRec2DFDP.h’). I also have included it in the > library modules. > > When I try to use the funtions of my library from the plugin I've created: > tl::Template::Pointer tem = tl::Template::New(); > std::cout << "Width: " << tem->GetWidth() << std::endl; > > One of the errors I get is the folowing one: > Error 1 error LNK2019: símbolo externo "public: int __cdecl > tl::Template::GetWidth(void) > > const " (?GetWidth@Template@tl@@QEBAHXZ) sin resolver al que se hace > referencia en la función "public: virtual void __cdecl > ReconstructionPlugin::ReconstructionProcessor::Update(void)" > (?Update@ReconstructionProcessor@ReconstructionPlugin@@UEAAXXZ) > ReconstructionPluginReconstructionProcessor.obj > > So I don't know if I need to do something different in order to build > correctly the solution. > > Thanks, > Aida > > > > El 31 de març de 2011 1:28, Aida Ninyerola <[email protected]> ha > escrit: > > Hi, > > Thank you very much for your answer. > > I've checked all you have said. I'm new on this, I hope I've checked well > as there are some things that I don't know well. > First of all I have check the macro. What I have is this: class > QUANTIDOPALIB1_0_EXPORT Rec2DFDP. I'm not surt if the macro is the correct > one. > > I have also verified the namespace and the correct class before the > function. It seems to be correct. Also, as I type the namespace, then the > class and finally the function, all is being said before finishing each word > by the program. I don't know if this is verifying something. > > Just in case, I'm going to generate again the solution. > > Thank you very much for your response. > Aida > > El 30 de març de 2011 17:23, Xavier Planes <[email protected]> ha > escrit: > > > > Hi Aida, > > First of all, I will answer you in English, if it’s ok with you, > because in this way, more people can understand your email and give you a > solution for your problem. > > The error says that the linker cannot find a function definition. > However the compiler can find the function declaration in compilation time. > This problem seems to be related to the dllexport macro. Could you please > check if you have the correct macro between the “class” and the name of > your > class “Rec2DFDP”? It should be something like this, but changing the class > name and the macro name: > class DCMAPIDATA_EXPORT Base > > All classes exported from a DLL should have this macro. > > Another problem could be that the definition of the function > TellHola( ) doesn't match the function declaration. Could you try to verify > that the definition of the function is in the correct namespace and the > correct class? > > Best, > Xavi > > > From: Aida Ninyerola [mailto:[email protected]] > Sent: miércoles, 30 de marzo de 2011 11:30 > To: [email protected] > Subject: [Gimias-developers] error en ús de llibreria pròpia > > > Hola, > > Sóc l'Aida. Treballo amb la Berta i estic desenvolupant funcions pel > QuantiDopa. > He estat treballant amb la Chiara tot aquest temps i m'ha estat donant un > cop de mà perquè pogués començar a desenvolupar les meves funcions. > > Durant la setmana passada vam estar, tant amb la Chiara com amb la Berta, > intentant solucionar aquest error: > > Error 1 error LNK2019: símbolo externo "__declspec(dllimport) public: > static void __cdecl tl::Rec2DFDP::TellHola(void)" > (__imp_?TellHola@Rec2DFDP@tl@@SAXXZ) sin resolver al que se hace > referencia > en la función "public: virtual void __cdecl > ReconstructionPlugin::ReconstructionProcessor::Update(void)" > (?Update@ReconstructionProcessor@ReconstructionPlugin@@UEAAXXZ) > ReconstructionPluginReconstructionProcessor.obj > > La Chiara va estar fins i tot amb el Teamviewer en el meu pc per veure què > podia ser el que no estava ben fet. Però després d'estar-ho mirant no hi va > haver manera de solucionar-ho. Em va dir que ja no se li acudia que més > podia ser i em va passar aquesta adreça perquè contactés amb tu. > > El que estava fent era una llibreria on tindria tot el codi de les accions > que ha de dur el plugin que vaig crear. > No sé quina informació necessites o si vols que et passi algo del codi, per > poder donar un cop d'ull aquest problema que no em deixa seguir treballant, > però tot el que et faci falta demana-m'ho. > > Moltes gràcies, > Aida > > > > >
csnVphtkApps.py
Description: Binary data
csnVphToolkit.py
Description: Binary data
QuantiDopaLibLib.rar
Description: application/rar
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Gimias-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gimias-developers
