logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.



Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Custom module in C/C++, can't compile in x64 platform
Author
amcom



Joined: 20 Jul 2016
Posts: 1

PostPosted: Thu 15 Sep '16 14:27    Post subject: Custom module in C/C++, can't compile in x64 platform Reply with quote

Hi

I am working on a custom module for Apache 2.3 in Windows. I need to include some Apache libraries, libapr-1.lib, libaprutil-1.lib, libhttpd.lib. I set up the path in Visual Studio. It can compile in 32 bit platform without a problem. However, if I switch to x64 and compile (with same path settings), it complains can't find some functions from the Apache libraries.

For example

Error 3 error LNK2001: unresolved external symbol __imp_ap_ht_time
Error 4 error LNK2001: unresolved external symbol __imp_ap_log_error
Error 5 error LNK2001: unresolved external symbol __imp_ap_run_default_port

Any idea? Thanks a lot.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2209
Location: Sun Diego, USA

PostPosted: Thu 15 Sep '16 17:52    Post subject: Reply with quote

You cannot link to a 32 bit library when building x64. Link to 64 bit lib, in this case an x64 libhttpd.lib looking at those errors.
Back to top


Reply to topic   Topic: Custom module in C/C++, can't compile in x64 platform View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads