Thread: utffile symbol defined is strange.

utffile symbol defined is strange.

From
"Hiroshi Saito"
Date:
Hi

I look at this error by VisualStudio2008.

1>wxbase28ud.lib(strconv.obj) : error LNK2005: "class wxMBConvUTF32BE wxConvUTF32BE"
(?wxConvUTF32BE@@3VwxMBConvUTF32BE@@A) (snip)...
1>wxbase28ud.lib(strconv.obj) : error LNK2005: "class wxMBConvUTF32LE wxConvUTF32LE"
(?wxConvUTF32LE@@3VwxMBConvUTF32LE@@A) (snip)...

However, I have remembered that you corrected with firm belief.

http://git.postgresql.org/gitweb?p=pgadmin3.git;a=blobdiff;f=pgadmin/utils/utffile.cpp;h=b4ab90ead1c270a0b06c46a9e312d3929a3e5de4;hp=e426091b4fb05679e00e85d691b2a3b61d44a737;hb=8ff75387c4079081b6e105d0a77f818e4ed17e51;hpb=4b8ae9d82c3b879eb02dda60908ed9590a674ec4

Therefore, I may be having overlooked some important things....
wxWidget is built by itself. Then, It was built by VisualStudio2008.
But, It needs an extern definition.

extern wxMBConvUTF32BE wxConvUTF32BE;
extern wxMBConvUTF32LE wxConvUTF32LE;

Do you know some reasons?
Thanks.

Regards,
Hiroshi Saito


Re: utffile symbol defined is strange.

From
Guillaume Lelarge
Date:
Hi Hiroshi-san,

Le 24/12/2010 16:52, Hiroshi Saito a écrit :
> [...]
> I look at this error by VisualStudio2008.
>
> 1>wxbase28ud.lib(strconv.obj) : error LNK2005: "class wxMBConvUTF32BE
> wxConvUTF32BE" (?wxConvUTF32BE@@3VwxMBConvUTF32BE@@A) (snip)...
> 1>wxbase28ud.lib(strconv.obj) : error LNK2005: "class wxMBConvUTF32LE
> wxConvUTF32LE" (?wxConvUTF32LE@@3VwxMBConvUTF32LE@@A) (snip)...
>
> However, I have remembered that you corrected with firm belief.
>
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=blobdiff;f=pgadmin/utils/utffile.cpp;h=b4ab90ead1c270a0b06c46a9e312d3929a3e5de4;hp=e426091b4fb05679e00e85d691b2a3b61d44a737;hb=8ff75387c4079081b6e105d0a77f818e4ed17e51;hpb=4b8ae9d82c3b879eb02dda60908ed9590a674ec4
>
>
> Therefore, I may be having overlooked some important things....
> wxWidget is built by itself. Then, It was built by VisualStudio2008.
> But, It needs an extern definition.
>
> extern wxMBConvUTF32BE wxConvUTF32BE;
> extern wxMBConvUTF32LE wxConvUTF32LE;
>
> Do you know some reasons?

This is part of this commit 1270bcd192729d95cb5e2aa687e5ba1c366b7f5f,
done by Dave, to enable dynamic build on Windows.

I don't know Windows build enough to be sure, but are you sure you
changed your build to a dynamic one? I know I had issues with building
on Windows right after this change. It wasn't Dave's fault, but mine. I
forgot to select the right build (IIRC).

Regards.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Re: utffile symbol defined is strange.

From
"Hiroshi Saito"
Date:
Hi Guillaume-san.

Thank you for a quick response.

----- Original Message -----
From: "Guillaume Lelarge" <guillaume@lelarge.info>
> Hi Hiroshi-san,
(snip)..
>> extern wxMBConvUTF32BE wxConvUTF32BE;
>> extern wxMBConvUTF32LE wxConvUTF32LE;
>>
>> Do you know some reasons?
>
> This is part of this commit 1270bcd192729d95cb5e2aa687e5ba1c366b7f5f,
> done by Dave, to enable dynamic build on Windows.
>
> I don't know Windows build enough to be sure, but are you sure you
> changed your build to a dynamic one? I know I had issues with building
> on Windows right after this change. It wasn't Dave's fault, but mine. I
> forgot to select the right build (IIRC).

Um,  I am confused for a while....
I understand wxWidgets by using only static and unicode.

http://git.postgresql.org/gitweb?p=pgadmin3.git;a=blob;f=xtra/wx-build/readme.txt;h=d3fc95b409770254ac7ffac69db62d790bd3f955;hb=HEAD
..
Run "build-wxmsw.bat" to from a Visual Studio 2005 commandprompt to build the
required parts of wxWidgets in both release and debug builds (unicode, non-DLL).
..

Dave, Is change planned by the next release?

Regards,
Hiroshi Saito


Re: utffile symbol defined is strange.

From
Dave Page
Date:
On Sun, Dec 26, 2010 at 1:34 PM, Hiroshi Saito <z-saito@guitar.ocn.ne.jp> wrote:
>> I don't know Windows build enough to be sure, but are you sure you
>> changed your build to a dynamic one? I know I had issues with building
>> on Windows right after this change. It wasn't Dave's fault, but mine. I
>> forgot to select the right build (IIRC).
>
> Um,  I am confused for a while....
> I understand wxWidgets by using only static and unicode.
>
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=blob;f=xtra/wx-build/readme.txt;h=d3fc95b409770254ac7ffac69db62d790bd3f955;hb=HEAD
> ..
> Run "build-wxmsw.bat" to from a Visual Studio 2005 commandprompt to build
> the
> required parts of wxWidgets in both release and debug builds (unicode,
> non-DLL).
> ..
>
> Dave, Is change planned by the next release?

Hi,

Sorry - it's fixed. I forgot to update that file. You should use a DLL
build of wxWidgets, ideally from VC++ 2008.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: utffile symbol defined is strange.

From
"Hiroshi Saito"
Date:
Hi.

Sorry, very late reaction....

----- Original Message -----
From: "Dave Page" <dpage@pgadmin.org>
(snip)
>> required parts of wxWidgets in both release and debug builds (unicode,
>> non-DLL).
>> ..
>>
>> Dave, Is change planned by the next release?
>
> Hi,
>
> Sorry - it's fixed. I forgot to update that file. You should use a DLL
> build of wxWidgets, ideally from VC++ 2008.

Ah ok!, my confusion was arranged. :-)
Thanks.

Regards,
Hiroshi Saito