Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Custom module in C/C++, can't compile in x64 platform |
|
Author |
|
amcom
Joined: 20 Jul 2016 Posts: 1
|
Posted: Thu 15 Sep '16 14:27 Post subject: Custom module in C/C++, can't compile in x64 platform |
|
|
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: 2268 Location: Sun Diego, USA
|
Posted: Thu 15 Sep '16 17:52 Post subject: |
|
|
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 |
|
|
|
|
|
|