>> == <<, etc.What are these symbols for?
by Scott Schaefer · in Torque Game Engine · 01/20/2002 (1:56 pm) · 5 replies
Ok, I just downloaded the head version and I have a question... Why are these symbols embedded throughout the code and script in some places?
Compiling...
lightning.cc
precipitation.cc
C:\torque\engine\game\fx\precipitation.cc(489) : error C2143: syntax error : missing ';' before '<<'
C:\torque\engine\game\fx\precipitation.cc(493) : error C2143: syntax error : missing ';' before '=='
C:\torque\engine\game\fx\precipitation.cc(497) : error C2143: syntax error : missing ';' before '>>'
Error executing cl.exe.
torqueDemo.exe - 3 error(s), 0 warning(s)
--------------------Configuration: Torque Lib - Win32 Release--------------------
Compiling...
lightning.cc
precipitation.cc
C:\torque\engine\game\fx\precipitation.cc(489) : error C2143: syntax error : missing ';' before '<<'
C:\torque\engine\game\fx\precipitation.cc(493) : error C2143: syntax error : missing ';' before '=='
C:\torque\engine\game\fx\precipitation.cc(497) : error C2143: syntax error : missing ';' before '>>'
Error executing cl.exe.
engine.lib - 3 error(s), 0 warning(s)
--------------------Configuration: Torque Lib - Win32 Release--------------------
Compiling...
precipitation.cc
C:\torque\engine\game\fx\precipitation.cc(489) : error C2143: syntax error : missing ';' before '<<'
C:\torque\engine\game\fx\precipitation.cc(493) : error C2143: syntax error : missing ';' before '=='
C:\torque\engine\game\fx\precipitation.cc(497) : error C2143: syntax error : missing ';' before '>>'
Error executing cl.exe.
It still compiles but I can't figure out why they are there, and why are they in the code AND script...
Weird.
Scott
Compiling...
lightning.cc
precipitation.cc
C:\torque\engine\game\fx\precipitation.cc(489) : error C2143: syntax error : missing ';' before '<<'
C:\torque\engine\game\fx\precipitation.cc(493) : error C2143: syntax error : missing ';' before '=='
C:\torque\engine\game\fx\precipitation.cc(497) : error C2143: syntax error : missing ';' before '>>'
Error executing cl.exe.
torqueDemo.exe - 3 error(s), 0 warning(s)
--------------------Configuration: Torque Lib - Win32 Release--------------------
Compiling...
lightning.cc
precipitation.cc
C:\torque\engine\game\fx\precipitation.cc(489) : error C2143: syntax error : missing ';' before '<<'
C:\torque\engine\game\fx\precipitation.cc(493) : error C2143: syntax error : missing ';' before '=='
C:\torque\engine\game\fx\precipitation.cc(497) : error C2143: syntax error : missing ';' before '>>'
Error executing cl.exe.
engine.lib - 3 error(s), 0 warning(s)
--------------------Configuration: Torque Lib - Win32 Release--------------------
Compiling...
precipitation.cc
C:\torque\engine\game\fx\precipitation.cc(489) : error C2143: syntax error : missing ';' before '<<'
C:\torque\engine\game\fx\precipitation.cc(493) : error C2143: syntax error : missing ';' before '=='
C:\torque\engine\game\fx\precipitation.cc(497) : error C2143: syntax error : missing ';' before '>>'
Error executing cl.exe.
It still compiles but I can't figure out why they are there, and why are they in the code AND script...
Weird.
Scott
About the author
#2
EDIT: Or, when you (Scott) say that you "downloaded" the head version, if you mean that you updated its changes onto your existing codebase (instead of checking out a clean copy), then the most likely situation is that the updating caused conflicts in your files. When you update, if there is a "C" displayed in front of a filename as the update output scrolls past, that indicates a conflict. You can also do a cvs status to look for conflicts.
A conflict happens when the update changes were made to the same lines of code that you were changing, so the automatic merge process can't decide what to do about it. You have to manually choose which version of the lines is best. There's more about conflicts in the CVS manual and tutorials.
01/20/2002 (6:33 pm)
I'd guess that someone committed code that had a CVS conflict marked in it, without resolving the conflict.EDIT: Or, when you (Scott) say that you "downloaded" the head version, if you mean that you updated its changes onto your existing codebase (instead of checking out a clean copy), then the most likely situation is that the updating caused conflicts in your files. When you update, if there is a "C" displayed in front of a filename as the update output scrolls past, that indicates a conflict. You can also do a cvs status to look for conflicts.
A conflict happens when the update changes were made to the same lines of code that you were changing, so the automatic merge process can't decide what to do about it. You have to manually choose which version of the lines is best. There's more about conflicts in the CVS manual and tutorials.
#3
Heh, over the weekend i tried converting the lightning.cc to use "load DML()" to add a texture to the lightning and cut out all references to "strike textures" (see my post to be the lightning martyr in the "Discussion" threads). I don't even know if that's possible, especially with my pathetic entry-level C++ skills. I pretty much torqued (no pun intended) the whole file without backing it up :/
Anywho, I did a merge in panic mode to get back what I lost, and these are by battle scars :) Guess I'll have to take a look at those files! Sorry, I don't know that much about CVS.
I really appreciate your guys' help.
Scott
01/20/2002 (7:46 pm)
Thanks alot. Heh, over the weekend i tried converting the lightning.cc to use "load DML()" to add a texture to the lightning and cut out all references to "strike textures" (see my post to be the lightning martyr in the "Discussion" threads). I don't even know if that's possible, especially with my pathetic entry-level C++ skills. I pretty much torqued (no pun intended) the whole file without backing it up :/
Anywho, I did a merge in panic mode to get back what I lost, and these are by battle scars :) Guess I'll have to take a look at those files! Sorry, I don't know that much about CVS.
I really appreciate your guys' help.
Scott
#5
01/20/2002 (11:10 pm)
Glad to hear it worked out. :-)
Associate Tim Newell
Max Gaming Technologies
Your missing something or a variable isnt defined right or something...you probably have a typo.
-Tim aka Spock