User forums > Help

wxGLCanvas link errors (C::B 10.05)

<< < (2/2)

venom_zx:
ollydbg yeah, i actually saw this page and i got a lot of information from it.

but it also confused me because:

- i only had a "setup.h" file after doing a build and it was not located at "include/wx/msw/setup.h"
but at
"lib/gcc_dll/msw/wx/setup.h"

- it tells me to make sure "setup.h" is deleted after doing a clean (which is the file i just edited)

i wasn't able to conclude from that page that i had to leave "setup.h" inplace after doing a clean, for doing a rebuild (which seemed to solve my problem). and i'm still suprised that it worked (because i used the same build options in the rebuild)

stahta01:

--- Quote from: venom_zx on June 05, 2010, 07:38:13 pm ---ollydbg yeah, i actually saw this page and i got a lot of information from it.

but it also confused me because:

- i only had a "setup.h" file after doing a build and it was not located at "include/wx/msw/setup.h"
but at
"lib/gcc_dll/msw/wx/setup.h"

- it tells me to make sure "setup.h" is deleted after doing a clean (which is the file i just edited)

i wasn't able to conclude from that page that i had to leave "setup.h" inplace after doing a clean, for doing a rebuild (which seemed to solve my problem). and i'm still suprised that it worked (because i used the same build options in the rebuild)

--- End quote ---

I added the step to copy setup0.h to setup.h in "include/wx/msw" folder.

Does the directions make sense to you now?

There is three setup files involved:
1: include\wx\msw\setup0.h            
The file setup0.h from the wxWidgets team and should not be changed by users.

2: include\wx\msw\setup.h              makefile creates if it does not exist from msw\setup0.h
The file msw\setup.h is where the user should make changes that needs to exist in all builds

3: lib\gcc_dll\mswu\wx\setup.h        makefile creates from msw\setup.h
Changing the file mswu\wx\setup.h only changes this build.

An forth setup.h I added just so I can find it using Google
4: include\msvc\wx\msw\setup.h     Should only be used by MS Visual C++ Compilers; and, best not to use it even there.

Tim S.

venom_zx:
hey Tim,

that works even better. now i don't have to rebuilt and only edit 1 setup.h file for debug, release, etc builds.
the wiki page is clear now.

thanks  :D

Navigation

[0] Message Index

[*] Previous page

Go to full version