You are not logged in.
Lost Password?


Register To Post



 Bottom   Previous Topic   Next Topic

#1
Please help: setting up gccvb
Posted on: 2012/3/1 3:48
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
Hello all! I joined planet vb a while ago and died because i felt i had lost interest because i was overwhelmed by other duties/projects. I'm back to the VB now however, and i love it. I just started having problems with the display even though i store my VB perfectly. I will try the oven method Friday. Anyways, i am learning C at the moment so i can code for the VB and i felt like trying to write a really basic program. I tried setting up gccVB with ultraedit and programmer's notepad but to no avail. I followed the onsite instructions exactly but it didn't work. I was wondering if somebody familiar with the dev scene could help me set up gccVB and perhaps point me to some other threads/sites for more VB dev info regarding differences between ANSI C and C used in gccVB (maybe different commands/functions? etc...)

It would be very helpful if somebody gave me complete step by step instructions on how to use gccVB to compile in ultraedit. (yes i did try compiling some demos available on planetvb but it didnt work...)
Also please write the instructions as if i have never installed gccVB or any gcc compiler ever. I have never used cygwin. Assume i have no files at all related to gccVB.

Thanks so much!
Top

#2
Re: Please help: setting up gccvb
Posted on: 2012/3/1 4:29
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
please ignore the part about "other threads/sites" with information, i seem to have found a LOT of documents after snooping around in the development section of the site. Please help with gccVB though.
Top

#3
Re: Please help: setting up gccvb
Posted on: 2012/3/1 14:09
PVB Elite
Joined 2008/12/28
Slovenia
636 Posts
Highscore Top ScoreHighscore Top ScoreCoderContributor10+ Game RatingsLong Time User (11 Years) App CoderPVBCC 2010 EntryPVBCC 2013 Entry
I myself use version 1.0, which is precompiled for Windows, very easy to install, and doesn't require Cygwin. I'm not entirely sure how it's different from newer versions, but I know you will need to replace the audio.h file in its version of libgccvb with a newer version to use eg. the Soviet Union 2011 sound engine. Some OBJ management macros also appear to be buggy.

As far as I know, gccVB is ANSI-compliant in terms of syntax. However, it doesn't have the standard C library, at least not in version 1.0.
Top

#4
Re: Please help: setting up gccvb
Posted on: 2012/3/1 15:51
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
Thanks for the help.
I would like to use the newer version though to minimize trouble. Can anyone provide information in how to install and use that with ultraedit?
Top

#5
Re: Please help: setting up gccvb
Posted on: 2012/3/1 20:49
Administrator
Joined 2000/1/8
Germany
2544 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Which instructions did you use? This - http://www.planetvb.com/modules/dokuw ... mpiling_gccvb_from_source - ?

Apart from ease of setup, the latest gccVB version is much superior to version 1.0 and should definitely be used if possible. Most notably, it supports interrupts which are a must for timing critical stuff like music.
Top

#6
Re: Please help: setting up gccvb
Posted on: 2012/3/1 22:07
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
I tried to use that, i dont know how to use cygwin and im clueless as to how i would go about installing gccvb. Do i just place the "local" folder in the gccvb rar in a certain directory after installing cygwin? Im very confused and specific instructions would be helpful. I tried doing it on my own and i didnt get results. My operating system is windows vista 64 bit.

Thanks
Top

#7
Re: Please help: setting up gccvb
Posted on: 2012/3/2 0:50
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
after following all the instructions on planetvb, i tried compiling with cygwin, and i get this: (attached)

Can someone tell me what i am doing wrong, and possibly how to set it up with ultraedit

Attach file:



png  compilehelp.PNG (63.03 KB)
1427_4f5019407608f.png 625X485 px
Top

#8
Re: Please help: setting up gccvb
Posted on: 2012/3/2 5:42
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
I figured out i didnt completely install all packages. I will post if i have more problems.
Top

#9
Re: Please help: setting up gccvb
Posted on: 2012/3/2 23:05
VB Gamer
Joined 2010/8/21
13 Posts
Long Time User (9 Years)
Trying to compile a demo... I got this:

$ make
v810-gcc -Wall -nodefaultlibs -mv810 -xc -o demo1.o demo1.c
In file included from ../libgccvb/affine.h:12,
from ../libgccvb/libgccvb.h:21,
from demo1.c:2:
../libgccvb/video.h:51: warning: `/*' within comment
In file included from ../libgccvb/affine.h:12,
from ../libgccvb/libgccvb.h:21,
from demo1.c:2:
../libgccvb/video.h:31: warning: type defaults to `int' in declaration of `VIP_R EGS'
../libgccvb/video.h:31: conflicting types for `VIP_REGS'
../libgccvb/vip.h:37: previous declaration of `VIP_REGS'
../libgccvb/video.h:31: `b' undeclared here (not in a function)
../libgccvb/video.h:31: warning: data definition has no type or storage class
../libgccvb/video.h:31: stray '\' in program
../libgccvb/video.h:32: warning: type defaults to `int' in declaration of `VIP_R EGS'
../libgccvb/video.h:32: conflicting types for `VIP_REGS'
../libgccvb/video.h:31: previous declaration of `VIP_REGS'
../libgccvb/video.h:32: `c' undeclared here (not in a function)
../libgccvb/video.h:53: parse error before `void'
../libgccvb/video.h: In function `vbFXFadeIn':
../libgccvb/video.h:113: warning: implicit declaration of function `vbWaitFrame'
../libgccvb/video.h:114: stray '\' in program
../libgccvb/video.h: In function `vbFXFadeOut':
../libgccvb/video.h:123: stray '\' in program
In file included from ../libgccvb/libgccvb.h:34,
from demo1.c:2:
../libgccvb/world.h: At top level:
../libgccvb/world.h:54: `n' undeclared here (not in a function)
../libgccvb/world.h:54: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:54: size of array `WAM' has non-integer type
../libgccvb/world.h:54: conflicting types for `WAM'
../libgccvb/video.h:22: previous declaration of `WAM'
../libgccvb/world.h:54: `gp' undeclared here (not in a function)
../libgccvb/world.h:54: warning: data definition has no type or storage class
../libgccvb/world.h:54: stray '\' in program
../libgccvb/world.h:55: `n' undeclared here (not in a function)
../libgccvb/world.h:55: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:55: size of array `WAM' has non-integer type
../libgccvb/world.h:55: redefinition of `WAM'
../libgccvb/world.h:54: `WAM' previously defined here
../libgccvb/world.h:57: `gy' undeclared here (not in a function)
../libgccvb/world.h:57: parse error before `WAM'
../libgccvb/world.h:57: stray '\' in program
../libgccvb/world.h:58: `n' undeclared here (not in a function)
../libgccvb/world.h:58: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:58: size of array `WAM' has non-integer type
../libgccvb/world.h:58: redefinition of `WAM'
../libgccvb/world.h:55: `WAM' previously defined here
../libgccvb/world.h:60: `my' undeclared here (not in a function)
../libgccvb/world.h:60: parse error before `WAM'
../libgccvb/world.h:70: `tmp' undeclared here (not in a function)
../libgccvb/world.h:70: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:70: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:70: conflicting types for `WAM'
../libgccvb/world.h:58: previous declaration of `WAM'
../libgccvb/world.h:70: `header' undeclared here (not in a function)
../libgccvb/world.h:70: warning: data definition has no type or storage class
../libgccvb/world.h:71: `tmp' undeclared here (not in a function)
../libgccvb/world.h:71: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:71: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:71: conflicting types for `WAM'
../libgccvb/world.h:70: previous declaration of `WAM'
../libgccvb/world.h:71: `gx' undeclared here (not in a function)
../libgccvb/world.h:71: warning: data definition has no type or storage class
../libgccvb/world.h:72: `tmp' undeclared here (not in a function)
../libgccvb/world.h:72: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:72: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:72: conflicting types for `WAM'
../libgccvb/world.h:71: previous declaration of `WAM'
../libgccvb/world.h:72: `gp' undeclared here (not in a function)
../libgccvb/world.h:72: warning: data definition has no type or storage class
../libgccvb/world.h:73: `tmp' undeclared here (not in a function)
../libgccvb/world.h:73: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:73: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:73: conflicting types for `WAM'
../libgccvb/world.h:72: previous declaration of `WAM'
../libgccvb/world.h:73: `gy' undeclared here (not in a function)
../libgccvb/world.h:73: warning: data definition has no type or storage class
../libgccvb/world.h:74: `tmp' undeclared here (not in a function)
../libgccvb/world.h:74: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:74: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:74: conflicting types for `WAM'
../libgccvb/world.h:73: previous declaration of `WAM'
../libgccvb/world.h:74: `mx' undeclared here (not in a function)
../libgccvb/world.h:74: warning: data definition has no type or storage class
../libgccvb/world.h:75: `tmp' undeclared here (not in a function)
../libgccvb/world.h:75: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:75: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:75: conflicting types for `WAM'
../libgccvb/world.h:74: previous declaration of `WAM'
../libgccvb/world.h:75: `mp' undeclared here (not in a function)
../libgccvb/world.h:75: warning: data definition has no type or storage class
../libgccvb/world.h:76: `tmp' undeclared here (not in a function)
../libgccvb/world.h:76: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:76: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:76: conflicting types for `WAM'
../libgccvb/world.h:75: previous declaration of `WAM'
../libgccvb/world.h:76: `my' undeclared here (not in a function)
../libgccvb/world.h:76: warning: data definition has no type or storage class
../libgccvb/world.h:77: `tmp' undeclared here (not in a function)
../libgccvb/world.h:77: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:77: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:77: conflicting types for `WAM'
../libgccvb/world.h:76: previous declaration of `WAM'
../libgccvb/world.h:77: `width' undeclared here (not in a function)
../libgccvb/world.h:77: warning: data definition has no type or storage class
../libgccvb/world.h:78: `tmp' undeclared here (not in a function)
../libgccvb/world.h:78: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:78: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:78: conflicting types for `WAM'
../libgccvb/world.h:77: previous declaration of `WAM'
../libgccvb/world.h:78: `height' undeclared here (not in a function)
../libgccvb/world.h:78: warning: data definition has no type or storage class
../libgccvb/world.h:79: parse error before `}'
../libgccvb/misc.h:14: warning: `itoa' defined but not used
Makefile:14: recipe for target `demo1.o' failed
make: *** [demo1.o] Error 1
Top

 Top   Previous Topic   Next Topic


Register To Post