Re: compiling with VC++

From: Date: Wed, 17 Jul 2002 14:58:24 +0000
Subject: Re: compiling with VC++
Groups: php.windows 
Request: Send a blank email to php-windows+get-14814@lists.php.net to get a copy of this message
It sounds like you are not linking into the proper DLLs so that your custom DLL can be built. It sounds like you need to add the entry "php4ts_debug.lib" or "php4ts.lib" to your linkage list. The easiest way to do this is to open up your ".dsp" file in a text editor, and add them to the line that begins with "# ADD LINK32". Alternatively, you can go to Project / Settings in Visual C++, and in the "Link" tab, you can add it to the field "Object/library modules" with all the other DLLs I have no idea what VC++ looks like in German... Another good idea is to just open up one of the other ".dsp" files for one of the other extensions in the "src/ext/" directory, and compare your settings with an extension that compiles properly. That's probably the best way to get started. Another gotcha... you should see in your ".c" file this code: #ifdef COMPILE_DL_TEST ZEND_GET_MODULE(test) #endif or something similar, depending on what you named your extension. Be sure to set "COMPILE_DL_TEST" in your compiler directives, or your extension wont run... also be sure to set "ZTS=1", unless you explicitly want to use the non-thread-safe version of the Zend engine... but I dont know why anybody would want to do that... Again, all other extensions already do this... you should familiarize yourself with a simple one if you get stuck again. -- Brian 'Bex' Huff bex@stellent.com Phone: 952-903-2023 Fax: 952-829-5424 > hi there, > > as i said yesterday, i had some problems compiling the example-code for an > extension. now i solved these probs, but now i have a new error: > > test.obj : error LNK2001: no defined external symbol "__declspec(dllimport) > int __cdecl zend_parse_parameters(int,char *,...)" > (__imp_?zend_parse_parameters@@YAHHPADZZ) > > now, what means this ? > > greets, > > Marco Glatz

« previous php.windows (#14814) next »