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

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

This topic is 5335 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;

class cVector
	inline sVec crossProduct(sVec v1, sVec v2);




#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