create an extension of postgresql 9 with Visual C++ 2008 express edition

Started by michel wildcatalmost 15 years ago5 messages
#1michel wildcat
m.wildcat82@gmail.com

Hello,
I am a computer student in belgium, for my academic project I am working to
an extension of postgresql 9 under win xp, by creating h DLL in Visual C++
2008 - I am new in both environments; To start and understand how does it
works, I tried to compile the example complex.c which is in the
directory /tutorial
of postgresql sources, but unfortunately I have lots of compilation errors
Although I made the various necessary "include ". Please I would like to
know if there could be a kind of tutorial that explains how to develop a DLL
for Postgresql using Visual C + + Express (the necessary config, the
library to include, etc.. ), based on the /tutorial/complex.c ffile for
example.
Thanks you in the advance.

#2michel wildcat
m.wildcat82@gmail.com
In reply to: michel wildcat (#1)

Hello,
I am a computer student in belgium, for my academic project I am working to
an extension of postgresql 9 under win xp, by creating h DLL in Visual C++
2008 - I am new in both environments; To start and understand how does it
works, I tried to compile the example complex.c which is in the
directory /tutorial
of postgresql sources, but unfortunately I have lots of compilation errors
Although I made the various necessary "include ". Please I would like to
know if there could be a kind of tutorial that explains how to develop a DLL
for Postgresql using Visual C + + Express (the necessary config, the
library to include, etc.. ), based on the /tutorial/complex.c ffile for
example.
Thanks you in the advance.

#3Dimitri Fontaine
dimitri@2ndQuadrant.fr
In reply to: michel wildcat (#2)
Re: [pgsql-fr-generale] create an extension of postgresql 9 with Visual C++ 2008 express edition

Bonjour,

On parle plutôt français sur cette liste d'habitude :)

To reach an English-speaking forum please consider pgsql-general.

michel wildcat <m.wildcat82@gmail.com> writes:

I am a computer student in belgium, for my academic project I am working to
an extension of postgresql 9 under win xp, by creating h DLL in Visual C++
2008 - I am new in both environments; To start and understand how does it
works, I tried to compile the example complex.c which is in the
directory /tutorial
of postgresql sources, but unfortunately I have lots of compilation errors
Although I made the various necessary "include ". Please I would like to
know if there could be a kind of tutorial that explains how to develop a DLL
for Postgresql using Visual C + + Express (the necessary config, the
library to include, etc.. ), based on the /tutorial/complex.c ffile for
example.

Better try with any contrib first. If possible one that does look like
the extension you're wanting to develop.

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

#4Cousin Florence
fcousin@sopragroup.com
In reply to: michel wildcat (#1)
RE : [pgsql-fr-generale] create an extension of postgresql 9 with Visual C++ 2008 express edition

-------- Message d'origine--------
De: pgsql-fr-generale-owner@postgresql.org de la part de michel wildcat
Date: mar. 08/02/2011 22:29
À: pgsql-hackers@postgresql.org
Objet : [pgsql-fr-generale] create an extension of postgresql 9 with Visual C++ 2008 express edition

Hello,
I am a computer student in belgium, for my academic project I am working to
an extension of postgresql 9 under win xp, by creating h DLL in Visual C++
2008 - I am new in both environments; To start and understand how does it
works, I tried to compile the example complex.c which is in the
directory /tutorial
of postgresql sources, but unfortunately I have lots of compilation errors
Although I made the various necessary "include ". Please I would like to
know if there could be a kind of tutorial that explains how to develop a DLL
for Postgresql using Visual C + + Express (the necessary config, the
library to include, etc.. ), based on the /tutorial/complex.c ffile for
example.
Thanks you in the advance.

----------------------

Bonjour,

ici c'est un forum francophone, merci de poster en français. Tu peux poster tes questions sur :
* pgsql-general : http://archives.postgresql.org/pgsql-general/
* pgsql-novice : http://archives.postgresql.org/pgsql-novice/
(pgsql-hackers@postgresql.org, c'est pour les développeurs DE PostgreSQL )

Hi,

you are on the French community mailing list, messages have to be written in french. You can post your questions on :
* pgsql-general : http://archives.postgresql.org/pgsql-general/
* pgsql-novice : http://archives.postgresql.org/pgsql-novice/
(pgsql-hackers@postgresql.org is only for the developpers of PostgreSQL itself)

Sorry, I can not help you on your specific question.

Bests regards,

Florence.

#5Kevin Grittner
Kevin.Grittner@wicourts.gov
In reply to: michel wildcat (#1)
Re: create an extension of postgresql 9 with Visual C++ 2008 express edition

michel wildcat <m.wildcat82@gmail.com> wrote:

I am a computer student in belgium, for my academic project I am
working to an extension of postgresql 9 under win xp, by creating
h DLL in Visual C++ 2008 - I am new in both environments; To start
and understand how does it works, I tried to compile the example
complex.c which is in the directory /tutorial of postgresql
sources, but unfortunately I have lots of compilation errors
Although I made the various necessary "include ".

This is a little to vague and confusing to be able to offer much
advice. Some copy and paste of attempts and the exact errors would
help. In general, you might want to review this page for ideas of
how to best ask a question to elicit a useful response:

http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

Please I would like to know if there could be a kind of tutorial
that explains how to develop a DLL for Postgresql using Visual C++
Express (the necessary config, the library to include, etc.. ),
based on the /tutorial/complex.c ffile for example.

I don't know of anything, but since I don't develop for that
environment, I haven't really dug deep looking for it. Be sure to
review what is in the Wiki, especially the links from the Windows
category:

http://wiki.postgresql.org/wiki/Category:Windows

as well as following the links from the developer tab of the main
PostgreSQL site:

http://www.postgresql.org/developer/

-Kevin