Bitcoin Forum
December 06, 2016, 10:22:53 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bug report: Build error: Too few arguments to miniupnpc-related functions  (Read 771 times)
Quetzalcoatl_
Newbie
*
Offline Offline

Activity: 26

This forum sucks.


View Profile
August 25, 2011, 10:09:31 PM
 #1

I'm building on Linux, but the source has this:

Code:
#ifndef __WXMSW__
        r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
                                port, port, lanaddr, strDesc.c_str(), "TCP", 0);
#else
        r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
                                port, port, lanaddr, strDesc.c_str(), "TCP", 0, "0");
#endif

The code that compiles when __WXMSW__ is defined is the correct code for my system. However,
adding -D__WXMSW__ to the GCC command line results in Windows-specific code being activated
throughout the program, which leads to other build errors.

How many arguments to pass to UPNP_AddPortMapping and other functions from that library cannot be tied to whether __WXMSW__ is defined. To get this to compile, I had to find all the improperly-called miniupnpc functions and remove the
bad version.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!