Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] linker error (unresolved external symbol)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] linker error (unresolved external symbol)


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] linker error (unresolved external symbol)
  • Date: Fri, 04 Dec 2009 09:19:03 +0100
  • Organization: INFOTERRA

Hi Sara,

Glad to know that your problem is solved :-)

You are right: you should not have to add this pragma. CGAL is supposed to already link with psapi.lib (in CGAL_SetupDependencies.cmake, which is called by CGAL main CMakeLists.txt).
Which version of Windows are you using?

Best regards,
Laurent Saboret


sara shafaei wrote:

Hi Laurent,

Thanks for your help. I added the line:
#progma comment(lib, "psapi.lib")       to the code and it solved the problem, although I am sure this the right way to solve it.

Thanks,
Sara

--- On Thu, 12/3/09, Laurent Saboret wrote:

From: Laurent Saboret
Subject: Re: [cgal-discuss] linker error (unresolved external symbol)
To:
Date: Thursday, December 3, 2009, 12:17 PM

Hi Sara,

GetProcessMemoryInfo is part of Windows API http://msdn.microsoft.com/en-us/library/ms683219(VS.85).aspx
Please check that you link with Kernel32.lib and Psapi.lib.

Best regards,
Laurent Saboret


sara shafaei wrote:
Hi all,

I am getting linker problem when I am running the cgal example :
 examples/Point_set_processing_3/normals_example.cpp
        
error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function "private: unsigned int __thiscall CGAL::Memory_sizer::get(bool)const " (?get@Memory_sizer@CGAL@@ABEI_N@Z)


I am using win64 and visual studio 2008. any hint would appreciated.

Thanks,
Sara


-----Inline Attachment Follows-----


Ce courrier électronique et toutes les pièces éventuellement jointes qu’il contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n’êtes pas le destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.

This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in any contract or obligation, nor its subsidiaries.

Ce courrier électronique et toutes les pièces éventuellement jointes qu’il contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n’êtes pas le destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.

This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in any contract or obligation, nor its subsidiaries.


  • Re: [cgal-discuss] linker error (unresolved external symbol), Laurent Saboret, 12/04/2009

Archive powered by MHonArc 2.6.16.

Top of Page