News: We're looking for extra members and developers. September 10, 2010, 07:32:29 pm
Welcome, Guest. Please login or register. *

Compile error when building engine
Pages: 1
  Send this topic  |  Print  

  Compile error when building engine
Author Message
0 Members and 1 Guest are viewing this topic.
Creature
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: May 04, 2008, 06:42:15 pm »

Trying to build the thing w/ netbeans.

Encountered the following two errors:

Quote
build:
Compiling source files
Compiling 89 source files to C:\Game Engines\VictoryEngine\trunk\bin
C:\Game Engines\VictoryEngine\trunk\src\org\openwar\victory\geom\TransformableGeometry.java:7: types org.openwar.victory.math.Transformable and org.openwar.victory.geom.Geometry are incompatible; both define moved(org.openwar.victory.math.Vector2), but with unrelated return types
public interface TransformableGeometry extends Geometry, Transformable {
C:\Game Engines\VictoryEngine\trunk\src\org\openwar\victory\geom\TransformableVolume.java:13: types org.openwar.victory.geom.TransformableGeometry and org.openwar.victory.geom.Volume are incompatible; both define moved(org.openwar.victory.math.Vector2), but with unrelated return types
public interface TransformableVolume extends Volume, TransformableGeometry {
2 errors

What can I do to fix this?

Thanks.
Logged
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #1 on: May 04, 2008, 07:26:36 pm »

What version of the compiler are you using? You should use the one with JDK 6, and compile with 6.0 code compatibility.

Hi, btw. Where did you come from? Smiley
Logged




Darvin
OpenWar Staff
Staff
Sr. Member
**
Offline Offline

Posts: 506


The Concept and Design King


View Profile
« Reply #2 on: May 04, 2008, 07:29:29 pm »

Just reading through your problems and the code, I'm inclined to agree with 2play that your probably is probably not using the most recent compiler.  Looks like a bug where your compiler isn't recognizing an interface hierarchy.
Logged

Pages: 1
  Send this topic  |  Print  
 

Jump to: