Crystal Space
Welcome, Guest. Please login or register.
July 25, 2014, 09:09:13 am

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8230 Members
Latest Member: Eleneenri
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Compile error with MSVC6.0
« previous next »
Pages: [1] Print
Author Topic: Compile error with MSVC6.0  (Read 1694 times)
mostafa
Newbie
*
Posts: 2


View Profile
« on: December 02, 2005, 08:06:32 am »

i unzipped CS into c:\program files\CS,and also i've installed cs-win32libs-0.99r0_015 into same directories.
when i want to compile the project,it compiles all the things and at the end it says:

--------------------Configuration: plggenmesh - Win32 Release--------------------
Compiling...
genmesh.cpp
C:\Program Files\CS\plugins\mesh\genmesh\object\genmesh.cpp(2246) : error C2086: 'i' : redefinition
Error executing cl.exe.

grpall_typical.lib - 1 error(s), 0 warning(s)

I want to know what I should do to overcome this problem.

[and also I'm a self-paced learner[programming] so i don't know some of the thing.please help me in making a project with CS.
I was using 3d game studio but it doesn't have the quality i want from a game engine.I switched to CS so that I can use 3dsmax maps and so that 3dgs doesn't support[max2gs doesn't work for me:D]
please help me.

Thanks,
Mostafa Moradian.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: December 02, 2005, 08:34:10 am »

Note that we will be dropping support for MSVC6.0 soon. There is now a free version of MSVC8.0 available. You should upgrade to that.

Greetings,
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #2 on: December 02, 2005, 02:58:34 pm »

This type of error usually means that you have a routine with multiple 'for' loops declaring the same variable:

Code:
for (int i = ...) { ... }
...etc...
for (int i = ...) { ... }

You can fix this by pulling the 'int i' declaration out of the 'for', like this:

Code:
int i;
for (i = ...) { ... }
...etc...
for (i = ...) { ... }

Note, however, that Microsoft's decision to release MSVC 2005 Express Edition for free has led us to the decision to drop support for the very old and very burdonsome MSVC6 compiler, so the more time passes, the less likely it will be that we will fix issues such as this since modern compilers prefer the code as shown in the first snippet.

(By the way, this should now be fixed in CVS.)
Logged
mostafa
Newbie
*
Posts: 2


View Profile
« Reply #3 on: December 03, 2005, 06:45:52 pm »

Thanks alot.
Nice community with nice support.
Thanks sunshine but jorrit solved my problem when i used IRC channel of this community.

Could you please give me the direct link to MSVC 2005 Express Edition?



Mostafa Moradian.
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #4 on: December 04, 2005, 01:27:23 am »

The download page for the Express editions is:

http://msdn.microsoft.com/vstudio/express/

For C++ development (used by CS), you will also need to download and install the Windows Platform SDK. Be sure to follow the installation instructions precisely:

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.195 seconds with 15 queries.