简体   繁体   中英

How to build the Poco C++ libraries

I'm trying to build the Poco C++ libraries manually on Android, iOS, and windows. After much effort I got them to build on Android, but I'm struggling a bit on Windows.

I've had to manually edit several files already to resolve undefined symbols -- specifically File & Path weren't #included properly by *_WIN32U.cpp versions.

I'm down to what APPEARS to be my last compiler issue for "Foundation". It's this line in Process_WIN32U.cpp:

    envChars = getEnvironmentVariablesBuffer(env);

The compiler error generated is: "getEnvironmentVariablesBuffer identifier not found"

The declaration of "getEnvironmentVariablesBuffer" is in Process.cpp but it's not a member of the root class, there are no EXTERN references anywhere, and no header file contains the function declaration.

So how the heck is "Process_WIN32U.cpp" supposed to be able to see that function?

Thanks!

So how the heck is "Process_WIN32U.cpp" supposed to be able to see that function?

ProcessWIN32U.cpp (ie ProcessImpl class) is able to see that function because ProcessWIN32U.cpp is included from Process.cpp and it was not designed or meant to be used standalone - it is excluded from build in POCO Visual Studio solutions.

为了使ProcessWIN32U.cpp包含在Process.cpp中,必须手动/ D_WIN32,它不是Visual Studio定义的(它定义WIN32)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM