I wasn't sure whether this problem should go in the Qt for embedded sub forum, but I'm at least pretty sure this is a more general issue. If anyone tells me differently, I'll move the thread.

I'm working on an application, based on the Hello GL ES example for windows CE. After some pain stacking work and debugging, I have the application working brilliantly on my windows desktop, but when I try compiling in visual studio for deployment, I get the following linker error.

Error 1 error LNK2019: unresolved external symbol getenv referenced in function jinit_memory_mgr QtGui.lib PlotPlanPlayerV3
"getenv()" is a function which isn't defined for windows CE (and is apparently, outdated). Is there some alternative to this I can use? Can I just place in an empty class to satisfy the extern, or will that upset the systems operation?

For reference, this is Qt 4.7.0, with a static build using the following options (in case this is relevant in the slightest!)

configure -platform win32-msvc2008 -xplatform wince50standard-armv4i-msvc2008 -nomake examples -nomake demos -no-qt3support -no-declarative -no-webkit -no-phonon -no-phonon-backend -opengl-es-cm -opensource -release -graphicssystem opengl -static
Thanks in advance, any help is really appreciated!