From: Vadim Zeitlin on
On Wed, 2 Apr 2008 08:36:00 +0900 Hiroshi ABE <habe36(a)gmail.com> wrote:

HA> I'm troubling with a link error as;
HA>
HA> wxbase26.lib(datetime.obj) : error LNK2019: unresolved extern
HA> symbol _timezone is refered in "int __cdecl GetTimeZone(void)"
HA> (?GetTimeZone@@YAHXZ)
HA> OLDNAMES.lib(timezone.obj) : error LNK2001: extern symbol "_timezone" is
HA> unresolved.
HA> OLDNAMES.lib(timezone.obj) : error LNK2001: extern symbol "__timezone" is
HA> unresolved.

I don't really understand why do you link in OLDNAMES.lib and you
definitely shouldn't have to do this:

HA> Property->Linker->Input
HA> 'libcmt' is set to be ignored.


Also, I think _timezone problem was solved in 2.8 so you should really
try 2.8.7, there will be no more fixes in 2.6 branch.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

From: ABE Hiroshi on
VZ,

Thank you for your info.
As you said, 2.8 solved the problem, but brings another problem
regarding wxGLCanvas.

Eventually, I found my fault with 2.6. My fault was MultiThread
compiler option is mismatched between the wxWigets Lib and the
application.

The problem regarding wxGLCanvas is still remained on 2.8, which is
that LIGHTING doesn't work. All the objects are in dark. And the
transform/rotation of OpenGL models doesn't work. All my code is
worked on 2.6. I will find the point of the problem. Maybe something
is missing, in my app. or wxWidgets.

Thank you for helps,

Hiroshi


On 2008/04/02, at 22:54, Vadim Zeitlin wrote:
> On Wed, 2 Apr 2008 08:36:00 +0900 Hiroshi ABE <habe36(a)gmail.com>
> wrote:
>
> HA> I'm troubling with a link error as;
> HA>
> HA> wxbase26.lib(datetime.obj) : error LNK2019: unresolved extern
> HA> symbol _timezone is refered in "int __cdecl GetTimeZone(void)"
> HA> (?GetTimeZone@@YAHXZ)
> HA> OLDNAMES.lib(timezone.obj) : error LNK2001: extern symbol
> "_timezone" is
> HA> unresolved.
> HA> OLDNAMES.lib(timezone.obj) : error LNK2001: extern symbol
> "__timezone" is
> HA> unresolved.
>
> I don't really understand why do you link in OLDNAMES.lib and you
> definitely shouldn't have to do this:
>
> HA> Property->Linker->Input
> HA> 'libcmt' is set to be
> ignored.
>
>
> Also, I think _timezone problem was solved in 2.8 so you should
> really
> try 2.8.7, there will be no more fixes in 2.6 branch.
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>
> _______________________________________________
> wx-users mailing list
> wx-users(a)lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users

ABE Hiroshi
from Tokorozawa, JAPAN

From: crjjrc on
On Apr 7, 7:42 am, ABE Hiroshi <hab...(a)gmail.com> wrote:

> The problem regarding wxGLCanvas is still remained on 2.8, which is
> that LIGHTING doesn't work. All the objects are in dark. And the
> transform/rotation of OpenGL models doesn't work. All my code is
> worked on 2.6. I will find the point of the problem. Maybe something
> is missing, in my app. or wxWidgets.

Are you sure that you glEnable(GL_LIGHTING) and glEnable(GL_LIGHT0)
when you have a valid wxGLContext? SetCurrent() doesn't work unless
the window is shown, i.e., it doesn't work in a canvas' constructor.

- Chris
From: Hiroshi ABE on
Thank you, Chris,

2008/4/7, crjjrc <crjjrc(a)gmail.com>:
[snip]
>
> Are you sure that you glEnable(GL_LIGHTING) and glEnable(GL_LIGHT0)
> when you have a valid wxGLContext? SetCurrent() doesn't work unless
> the window is shown, i.e., it doesn't work in a canvas' constructor.

Yes, surely I do. Actually, the code works fine as I expect with 2.6.4
both on MacOSX and on WIndows XP. The "Dark" problem occurs to the
other guy too. He reported it on wxWidgets Forum ( I lost where it was
).

Hiroshi
From: ABE Hiroshi on
Dear wxWidgets Developers,

Eventually, I found my fault in my app.

I generated glLists in several routines. The glList is created by
glNewList - glEndList, actually they are OpenGL objects such as, x-y-
z axis and atoms.
I found that SetCurrent() must be called in the routines which
generate glList.
MacOS X version and 2.6.x version seemed to be very easy for the
context.

On 2008/04/07, at 21:51, crjjrc wrote:
>
>
> On Apr 7, 7:42 am, ABE Hiroshi <hab...(a)gmail.com> wrote:
>
>> The problem regarding wxGLCanvas is still remained on 2.8, which is
>> that LIGHTING doesn't work. All the objects are in dark. And the
>> transform/rotation of OpenGL models doesn't work. All my code is
>> worked on 2.6. I will find the point of the problem. Maybe something
>> is missing, in my app. or wxWidgets.
>
> Are you sure that you glEnable(GL_LIGHTING) and glEnable(GL_LIGHT0)
> when you have a valid wxGLContext? SetCurrent() doesn't work unless
> the window is shown, i.e., it doesn't work in a canvas' constructor.


Regards,

ABE Hiroshi
from Tokorozawa, JAPAN