linker in c++ with subversion

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 61
Reputation: squinx22 is an unknown quantity at this point 
Solved Threads: 0
squinx22 squinx22 is offline Offline
Junior Poster in Training

linker in c++ with subversion

 
0
  #1
Apr 19th, 2007
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...
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,634
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1497
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: linker in c++ with subversion

 
0
  #2
Apr 19th, 2007
>>It doesnt work...
what does that mean? what are some of the errors?
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: linker in c++ with subversion

 
0
  #3
Apr 19th, 2007
Originally Posted by squinx22 View Post
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.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC