how do i compile a project with files/codes in a subversion..

suppose I have these files in a version control:

folder/implement.cpp
folder/head.hpp

I want to compile my main.cpp with these files

What I did is:

$ g++ main.cpp ../svn/folder/implement.cpp -I ../svn/folder/ -o main

It doesnt work...

Pls give me link that gives the complete codes on how to compile diff programs in c++.

tnx in advance...

how do i compile a project with files/codes in a subversion..

suppose I have these files in a version control:

folder/implement.cpp
folder/head.hpp

I want to compile my main.cpp with these files

What I did is:

$ g++ main.cpp ../svn/folder/implement.cpp -I ../svn/folder/ -o main

It doesnt work...

Pls give me link that gives the complete codes on how to compile diff programs in c++.

tnx in advance...

I have not used subversion, only cvs and visual source safe. But they do not store source files using the usual file extension. They append a ",v" part at the end.
At any case, developers do not link the files in the repository directly. First they checkout them to a working folder and do the stuff from there. So first see if the ../svn/folder/implement.cpp file exists. It is likely that it doesnt exist, and what exists is a file like ../svn/folder/implement.cpp,v . If the ../svn/folder/implement.cpp,v exists, check the files to a working folder and build using them.

This article has been dead for over six months. Start a new discussion instead.