C Probleem
23 mei 2008 - 18:38    reactie #25
geplaatst door: stijnschoor
Laat maar ik heb het al opgelost.
Hier is de code:


#include <iostream>

using namespace std;

class SObject {
public:
int age;
void setAge(int a);
int showage();
};


void SObject::setAge(int a)
{
age = a;
}


int SObject::showage()
{
return age;
}

int main (int argc, char * const argv[]) {
SObject huis;
huis.setAge(25);
cout << huis.showage();
return 0;
}

"What's in a name that we call a mac"
Shakespeare
C Probleem
27 mei 2008 - 16:06    reactie #26
geplaatst door: stijnschoor
Nu is er toch weer een probleem met wxWidgets, Qt en Fltk werkten dus dacht ik dat wx ook zou werken  :mad:
Het probleem is dat de wxLib(Joost mag het weten hoe je ze include in XCode) nog niet bestaat!
Dit komt door de error: make: *** [wxregex_regcomp.o] Error 1. Verder krijg ik vage warnings over missende bestanden zoals WIN32.h(we hebben toch een mac geen windows?).
Destijds had ik die over het hoofd gezien(toen ik nog een normaal leven had).
Weet iemand het probleem?

Alvast bedankt

P.S. wxWidgets met XCode proberen te compilen heb ik al geprobeerd maar dat lukte niet. Hier vind je de 150 errors van het compilen. http://stijnschoor.googlepages.com/error.txt

"What's in a name that we call a mac"
Shakespeare
C Probleem
28 mei 2008 - 18:08    reactie #27
geplaatst door: stijnschoor
Al opgelost! (o wat ben ik toch slim  :cool: )
Je moet tegen het make command zeggen dat hij alle errors moet negeren.
make -i

Maar nu weer bij wxwidgets. Ik heb veel libraries waaronder: libwx_base_carbon_net-2.8.a, libwxjpg-2.8.a, libwx_mac_qa-2.8.a, libwx_base_carbon-2.8.a en nog vele andere. Wat moet ik er mee?
Weer include bij header paths en toevoegen aan het project?

(Bewerkt door stijnschoor om 21:44, 28-05-2008)

"What's in a name that we call a mac"
Shakespeare
C Probleem
25 juni 2008 - 09:13    reactie #28
geplaatst door: Probot
Hello!

I"ve the same problem:
I get the errors:

Line Location defs.h:1015: error: conflicting declaration 'typedef wxInt32 ssize_t'
Line Location string.h:164: error: #error "Please define string case-insensitive compare for your OS/compiler"
Line Location types.h:235: error: 'ssize_t' has a previous declaration as 'typedef __darwin_ssize_t ssize_t'

But I don"t understand quite noting in Dutch.
Please can you write me in English, how you fixed this Problem.
Thanks!!!

C Probleem
27 juni 2008 - 14:27    reactie #29
geplaatst door: stijnschoor
Best Probot

I still haven't got the answer for that problem. I gave wxWidgets up and started to learn Cocoa. There are several forums where I've asked the same question, but they didn't know it(not even wxForums!). I think that this is a problem on 10.4(I assume that you have 10.4) because wx is compiled on 10.5.
Please don't stop programming, there's QT and Cocoa.
If you want to know how to install QT, just ask.

Stijn

"What's in a name that we call a mac"
Shakespeare
C Probleem
27 juni 2008 - 19:17    reactie #30
geplaatst door: Probot
In the meanwhile i've found the solution for exactly these two erros:
http://wiki.wxwidgets.org/Reported_Errors_2.6.1_Xcode_1.5_10.3.9

Thanks!

PS:
For me is wxWidgets a good programming Language to program cross-Platform Apps in c/c++. :biggrin: