Problems compiling CVS under Windows

Поиск
Список
Период
Сортировка
Искать

Problems compiling CVS under Windows

От:
Denis Gasparin <denis@edistar.com>
Дата:
When trying to compile ODBC30 e ODBC25 from CVS, i obtaing the following 
error:

Creating library .\ODBC30\psqlodbc.lib and object .\ODBC30\psqlodbc.exp
connection.obj : error LNK2001: unresolved external symbol 
_CC_lookup_characters
et
connection.obj : error LNK2001: unresolved external symbol _pg_CS_name
dlg_specific.obj : error LNK2001: unresolved external symbol _pg_CS_name
connection.obj : error LNK2001: unresolved external symbol _pg_CS_code
dlg_specific.obj : error LNK2001: unresolved external symbol _pg_CS_code
convert.obj : error LNK2001: unresolved external symbol _encoded_str_constr
info.obj : error LNK2001: unresolved external symbol _encoded_str_constr
misc.obj : error LNK2001: unresolved external symbol _encoded_str_constr
parse.obj : error LNK2001: unresolved external symbol _encoded_str_constr
convert.obj : error LNK2001: unresolved external symbol _encoded_byte_check
convert.obj : error LNK2001: unresolved external symbol _pg_mbschr
convert.obj : error LNK2001: unresolved external symbol _encoded_nextchar
info.obj : error LNK2001: unresolved external symbol _encoded_nextchar
misc.obj : error LNK2001: unresolved external symbol _encoded_nextchar
parse.obj : error LNK2001: unresolved external symbol _encoded_nextchar
.\ODBC30\psqlodbc.dll : fatal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
Stop.

The problem does not present when i compile ODBC Unicode (win32_30w.mak).

What i'm missing?

Thank you in advance,
Denis

Re: Problems compiling CVS under Windows

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
 

> -----Original Message-----
> From: Denis Gasparin [mailto:denis@edistar.com] 
> Sent: 06 April 2004 09:23
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] Problems compiling CVS under Windows
> 
> When trying to compile ODBC30 e ODBC25 from CVS, i obtaing 
> the following 
> error:
> 
> Creating library .\ODBC30\psqlodbc.lib and object 
> .\ODBC30\psqlodbc.exp
> connection.obj : error LNK2001: unresolved external symbol 
> _CC_lookup_characters

Hi Denis,

Is this CVS tip? Did you try:

nmake /f win32.mak CLEAN

Before building?

Regards, Dave.

Re: Problems compiling CVS under Windows

От:
Jose' Cruanyes <cruanyes@cegroup.it>
Дата:

On Apr 6, 2004, at 10:22 AM, Denis Gasparin wrote:

> When trying to compile ODBC30 e ODBC25 from CVS, i obtaing the 
> following error:
>
>

I've noted it yesterday, the "non multibyte" versions of the driver 
uses anyway functions defined in multibyte.c that is not linked, hence 
the errors

I've compiled using
nmake /f win32.mak

and it compiles and works, compiling the MultibyteODBC30 version (but 
it says is compiling the ODBC30)



Pax et Bonum

# dott. Jose' Cruanyes Aguilar  -  C.E. Soft srl
#  Pzza. Firenze,4 MILANO  -  XX Settembre 10, CREMONA
#   02,33603122                0372,460602

Re: Problems compiling CVS under Windows

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
 

> -----Original Message-----
> From: Jose' Cruanyes [mailto:cruanyes@cegroup.it] 
> Sent: 06 April 2004 17:06
> To: Denis Gasparin
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Problems compiling CVS under Windows
> 
> 
> On Apr 6, 2004, at 10:22 AM, Denis Gasparin wrote:
> 
> > When trying to compile ODBC30 e ODBC25 from CVS, i obtaing the 
> > following error:
> >
> >
> 
> I've noted it yesterday, the "non multibyte" versions of the 
> driver uses anyway functions defined in multibyte.c that is 
> not linked, hence the errors

There is no 'non-multibyte' version. There is a non-unicode version, but
it is still multibyte capable. Unicode support requires a different set
of ODBC functions which are not required for multibyte.

> I've compiled using
> nmake /f win32.mak

I've compiled all three from scratch this morning and they work fine for
me in VC++ 6.0.

nmake /f win32.mak
nmake /f win32_25.mak
nmake /f win32_30w.mak

Regards, Dave.

Re: Problems compiling CVS under Windows

От:
Jose' Cruanyes <cruanyes@cegroup.it>
Дата:

On Apr 7, 2004, at 10:41 AM, Dave Page wrote:
>> I've noted it yesterday, the "non multibyte" versions of the
>> driver uses anyway functions defined in multibyte.c that is
>> not linked, hence the errors
>
> There is no 'non-multibyte' version. There is a non-unicode version, 
> but
> it is still multibyte capable. Unicode support requires a different set
> of ODBC functions which are not required for multibyte.
>
>> I've compiled using
>> nmake /f win32.mak
>
> I've compiled all three from scratch this morning and they work fine 
> for
> me in VC++ 6.0.
>
> nmake /f win32.mak
> nmake /f win32_25.mak
> nmake /f win32_30w.mak
>

OK, Then we have to clean up the makefiles and READMEs to avoid 
confusion



Pax et Bonum

# dott. Jose' Cruanyes Aguilar  -  C.E. Soft srl
#  Pzza. Firenze,4 MILANO  -  XX Settembre 10, CREMONA
#   02,33603122                0372,460602

Re: Problems compiling CVS under Windows

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
 

> -----Original Message-----
> From: Jose' Cruanyes [mailto:cruanyes@cegroup.it] 
> Sent: 07 April 2004 10:07
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Problems compiling CVS under Windows
> 
> 
> 
> OK, Then we have to clean up the makefiles and READMEs to 
> avoid confusion
> 

Yes - I said just the other day that I want to get rid of all but
win32_30w....

Regards, Dave.
FAQ