windows 64 bit build problems
[email protected] (Gary Hanyzewski) Fri, 16 Oct 2009 09:43:32 -0700
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm building a C application which uses gd. I downloaded and am using the latest windows binaries from libgd.org (2.0.34 according to gd.h). When I compile my application using the msvc 32-bit compiler everything works fine (setenv /x86). When I compile the exact same code using the 64-bit compiler and libraries (setenv /x64) I get 14 unresolved externals fro gd. I've listed them below. So what's the trick? Is there a known problem with using gd in 64-bit c applications with msvc (cl/link)? Thanks for any pointers / help. To reiterate this application builds fine using the 32-bit version of MSVC compiler from the SDK (cl/link) but fails using the 64-bit compiler/linker. No other changes to source or even compiler / linker. Thank you -------------------------------------------------------- foo.obj : error LNK2019: unresolved external symbol __imp_gdImageDestroy ref erenced in function get_image_data foo.obj : error LNK2019: unresolved external symbol __imp_gdImageGifPtr refe renced in function get_image_data foo.obj : error LNK2019: unresolved external symbol __imp_gdImageCreatePalet teFromTrueColor referenced in function get_image_data foo.obj : error LNK2019: unresolved external symbol __imp_gdImagePngPtr refe renced in function get_image_data foo.obj : error LNK2019: unresolved external symbol __imp_gdFree referenced in function write_image foo.obj : error LNK2019: unresolved external symbol __imp_gdImageColorAlloca te referenced in function get_atom_colour foo.obj : error LNK2019: unresolved external symbol __imp_gdImageArc referen ced in function mark_atom foo.obj : error LNK2019: unresolved external symbol __imp_gdImageSetThicknes s referenced in function mark_atom foo.obj : error LNK2019: unresolved external symbol __imp_gdImageSetAntiAlia sed referenced in function mark_atom foo.obj : error LNK2019: unresolved external symbol __imp_gdImageStringFT re ferenced in function label_atom foo.obj : error LNK2019: unresolved external symbol __imp_gdImageGetPixel re ferenced in function get_bbox foo.obj : error LNK2019: unresolved external symbol __imp_gdImageFilledRecta ngle referenced in function get_bbox foo.obj : error LNK2019: unresolved external symbol __imp_gdImageCreateTrueC olor referenced in function get_bbox foo.obj : error LNK2019: unresolved external symbol __imp_gdImageSetPixel re ferenced in function draw_line foo.exe : fatal error LNK1120: 14 unresolved externals Disclaimer: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. Dotmatics Limited screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. Dotmatics Limited accepts no liability for any damage caused by any virus transmitted by this electronic mail. Dotmatics Limited is registered in England & Wales No. 5614524 with offices at 1-2 Thorley Hall Stables, Bishop's Stortford, Herts, CM23 4BE, UK.