Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Freaker13

syntax error : missing ';' before 'tag::id'

This topic is 5549 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all, i get the folowing error when i compile: syntax error : missing ';' before 'tag::id'
      
#ifndef VECTOR_H
#define VECTOR_H

typedef struct sVec
{
	float x,y,z;
}sVec;

class cVector
{
public:
	inline sVec crossProduct(sVec v1, sVec v2);

private:

}
#endif;

  

      
#include "stdafx.h"
#include "Vector.h"


sVec cVector::crossProduct(sVec v1, sVec v2)//here is the error

{
	sVec res;
	res.x = (v1.y  * v2.z) - (v2.y * v1.z);
	res.y = (v1.z  * v2.x) - (v2.z * v1.x);
	res.z = (v1.x  * v2.y) - (v2.x * v1.y);
	return res;
}
    
can someone help me? thx in advance [edited by - Freaker13 on May 8, 2003 12:50:43 PM]

Share this post


Link to post
Share on other sites
Advertisement
You are missing the '';'' after the ''}'' bracket ...


class cVector
{
public:
inline sVec crossProduct(sVec v1, sVec v2);private:
}; // <--- notice the '';''

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!