Help compiling with bcc55 free compiler

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Javock
In need of some credit
In need of some credit
Posts: 9
Joined: Mon Oct 11, 2004 8:06 am
Location: Argentina
Contact:

Help compiling with bcc55 free compiler

Post by Javock »

Hello,

I hacked this application with wxWidgets (gtk) under linux (very dirty work, but hey! it works, sort of). To compile this application I use a makefile like this
---
INCLUDES=-I. -I/usr/lib/wx/include/gtk2u-2.4
CFLAGS=-Wall -g -Werror -pipe
WXDEFINES=-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
LDFLAGS=-lwx_gtk2u-2.4

FILES=main.cpp observable.cpp filter.cpp modelo.cpp control.cpp viewer.cpp ImageWindow.cpp

OBJS=$(FILES:.cpp=.o)
FILES_H=$(FILES:.cpp=.h)

link: all $(OBJS)
g++ $(CFLAGS) $(LDFLAGS) $(OBJS) -o application

all: $(FILES)
g++ $(CFLAGS) $(INCLUDES) $(WXDEFINES) -c $(FILES)
---

perhaps it's not the best but it works (advice accepted).

But this makefile is not the problem, as the program runs ok in linux. The problem arises when I move to windoze, I tried to copy/paste one of the samples but I get errors. This is the makefile I glued :
---
WXDIR = $(WXWIN)

TARGET=viewer
OBJECTS = $(TARGET).obj observable.obj filter.obj modelo.obj control.obj viewer.obj ImageWindow.obj

!include $(WXDIR)\src\makeprog.b32
---

And the error it gives me :
---
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 @c:\wxWindows-2.4.2\src\msw\wxw32d.cfg -v -Od -c viewer.cpp Ima
geWindow.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
viewer.cpp:
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
Error E2449 ImageWindow.h 23: Size of 'image_' is unknown or zero
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
*** 3 errors in Compile ***
ImageWindow.cpp:
Loaded pre-compiled headers.
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
Error E2449 ImageWindow.h 23: Size of 'image_' is unknown or zero
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
*** 3 errors in Compile ***
---

Can someone PLEASE help me out?

thanks!
User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Re: Help compiling with bcc55 free compiler

Post by ABX »

Javock wrote:Hello
Please, do not post the same questions to wx-users mailing list/news group and this forum. Thanks in advance,

ABX
jdratlif
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Oct 11, 2004 2:12 pm
Location: in a small padded white room.
Contact:

Re: Help compiling with bcc55 free compiler

Post by jdratlif »

ABX wrote:
Javock wrote:Hello
Please, do not post the same questions to wx-users mailing list/news group and this forum. Thanks in advance,

ABX
I agree. I want the mailing lists to go away. That won't happen if people keep using them.

God I hate mailing lists. phpBB is superior in every way (or at least in every way that matters to me).
Find save states, game genie codes, and other misc emulation related goodies at emuWorks.

http://games.technoplaza.net
jdratlif
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Oct 11, 2004 2:12 pm
Location: in a small padded white room.
Contact:

Re: Help compiling with bcc55 free compiler

Post by jdratlif »

Javock wrote:Hello,

I hacked this application with wxWidgets (gtk) under linux (very dirty work, but hey! it works, sort of). To compile this application I use a makefile like this
---
INCLUDES=-I. -I/usr/lib/wx/include/gtk2u-2.4
CFLAGS=-Wall -g -Werror -pipe
WXDEFINES=-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
LDFLAGS=-lwx_gtk2u-2.4

FILES=main.cpp observable.cpp filter.cpp modelo.cpp control.cpp viewer.cpp ImageWindow.cpp

OBJS=$(FILES:.cpp=.o)
FILES_H=$(FILES:.cpp=.h)

link: all $(OBJS)
g++ $(CFLAGS) $(LDFLAGS) $(OBJS) -o application

all: $(FILES)
g++ $(CFLAGS) $(INCLUDES) $(WXDEFINES) -c $(FILES)
---

perhaps it's not the best but it works (advice accepted).

But this makefile is not the problem, as the program runs ok in linux. The problem arises when I move to windoze, I tried to copy/paste one of the samples but I get errors. This is the makefile I glued :
---
WXDIR = $(WXWIN)

TARGET=viewer
OBJECTS = $(TARGET).obj observable.obj filter.obj modelo.obj control.obj viewer.obj ImageWindow.obj

!include $(WXDIR)\src\makeprog.b32
---

And the error it gives me :
---
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 @c:\wxWindows-2.4.2\src\msw\wxw32d.cfg -v -Od -c viewer.cpp Ima
geWindow.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
viewer.cpp:
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
Error E2449 ImageWindow.h 23: Size of 'image_' is unknown or zero
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
*** 3 errors in Compile ***
ImageWindow.cpp:
Loaded pre-compiled headers.
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
Error E2449 ImageWindow.h 23: Size of 'image_' is unknown or zero
Error E2450 ImageWindow.h 23: Undefined structure 'wxImage'
*** 3 errors in Compile ***
---

Can someone PLEASE help me out?

thanks!
Looks like your missing a header. Have you included wx/wx.h or wx/image.h?

If you post your source somewhere, I will try to compile it in mingw and see if it works for me.
Find save states, game genie codes, and other misc emulation related goodies at emuWorks.

http://games.technoplaza.net
Javock
In need of some credit
In need of some credit
Posts: 9
Joined: Mon Oct 11, 2004 8:06 am
Location: Argentina
Contact:

Re: Help compiling with bcc55 free compiler

Post by Javock »

jdratlif wrote:
I agree. I want the mailing lists to go away. That won't happen if people keep using them.

God I hate mailing lists. phpBB is superior in every way (or at least in every way that matters to me).
Sorry... :oops:

Will not happen again. :roll:

Now, I rather use the lists, but where could I find the best assistance, here or on the lists?

Regards
User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Re: Help compiling with bcc55 free compiler

Post by ABX »

Javock wrote:where could I find the best assistance, here or on the lists?
Both wx-users and forum are good places for general questions. Core developers seem prefer lists.

Just do not post questions in both places at once because some people have less free time and answer only those unanswered posts while having you answer in other place makes their effort of answering wasted (I hope you understand what I mean :-) )

ABX
Javock
In need of some credit
In need of some credit
Posts: 9
Joined: Mon Oct 11, 2004 8:06 am
Location: Argentina
Contact:

Re: Help compiling with bcc55 free compiler

Post by Javock »

[quote="ABX" (I hope you understand what I mean :-) )

ABX[/quote]

Roger!
Post Reply