I've never built cx_Oracle on Windows using the VC++ compilers. I've
always used gcc (http://www.mingw.org). That way the options are the
same on all of the platforms. Distuils handles most but not all of these
issues -- as you can see. Do you have to use VC++ or can you use the
binaries or mingw?
BTW, gcc allows linking directly to a DLL so I have never bothered to
build or use an import library. Thus the requirement for win32api solely
so that I can discover the Python DLL to link against. Its unfortunate
that distutils or Python itself doesn't provide this information. Its
also unfortunate that VC++ doesn't provide this capability.
Harri Pasanen wrote:
> Me again, with another set of problems:
>
> With Visual C++ 6.0 it stumbles on Variable.c, which appears to have
> long long's in it, which Visual C++ 6.0 does not support.
>
> Moving to VC 7.1:
>
> With Visual C++ 7.1 I got further, but had some trouble as win32api
> was not installed in my vc7 environment (why is it needed?)
>
> Hand tweaking setup.py around that got me a linker warning:
>
> LINK : warning LNK4044: unrecognized option '/s', and then it bailed
> out trying to link against oci.dll?
>
> setup.py line:
> extraLinkArgs.append(os.path.join(oracleHome, "bin", "oci.dll"))
>
> was at cause:
>
> Changing that to:
>
> extraLinkArgs.append(os.path.join(oracleHome, "oci","msvc","lib",
> "oci.lib"))
>
> made it to link.
>
> (Oracle 9.2 client, Python 2.3.4, VC++7.1)
>
> I'll continue tomorrow...
>
> Regards,
>
> Harri
>
>
> This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> cx-oracle-users mailing list
> cx-...@li...
> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
--
Anthony Tuininga
an...@co...
Computronix
Distinctive Software. Real People.
Suite 200, 10216 - 124 Street NW
Edmonton, AB, Canada T5N 4A3
Phone: (780) 454-3700
Fax: (780) 454-3838
http://www.computronix.com
|