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...

>>It doesnt work...
what does that mean? what are some of the errors?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.