473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

GCC output directory

Might b e a bit OT, but I know there's lots of you who can help
quickly.

Is there any way to let gcc/g++ output the .o files in a folder I can
specify?

Thank you for not flaming,

-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}


Apr 19 '06 #1
4 12127
Gernot Frisch wrote:
Might b e a bit OT, but I know there's lots of you who can help
quickly.

Is there any way to let gcc/g++ output the .o files in a folder I can
specify?
What's wrong with g++ followed by a cp?

Thank you for not flaming,

-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

Apr 19 '06 #2
Gernot Frisch wrote:
Might b e a bit OT, but I know there's lots of you who can help
quickly.

Is there any way to let gcc/g++ output the .o files in a folder I can
specify?

-o is a common compiler switch to specify the output file name.

--
Ian Collins.
Apr 19 '06 #3
Is there any way to let gcc/g++ output the .o files in a folder I
can
specify?


What's wrong with g++ followed by a cp?


in my case "mv". The files are generated in the directory of the
g++.exe. But the compiler directory might be read only to a normal
user, so it would be nice if I could tell it to use another one in the
first place...
Apr 19 '06 #4
On Wed, 19 Apr 2006 11:45:55 +0200, Gernot Frisch wrote:
Is there any way to let gcc/g++ output the .o files in a folder I
can
specify?


What's wrong with g++ followed by a cp?


in my case "mv". The files are generated in the directory of the
g++.exe. But the compiler directory might be read only to a normal
user, so it would be nice if I could tell it to use another one in the
first place...


I think you'll find they're placed in the current directory, not the
directory containing gcc.

Apr 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Etienne Charland | last post by:
Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5 class libraries. I didn't have any problems until recently. I added a new project containing reports. I am using...
1
by: fang | last post by:
Really confusing, I am using visual stdio C++ 6.0 I add a new project file into my current workspace. If I use the default output directory like default and release, everything works fine. But...
6
by: Wescotte | last post by:
I'm writing a tiny php app that will log into our bank of america account and retrieve a file containing a list of checks that cleared the previous day. The problem I'm running into is when I...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
1
by: Bryan Glennon | last post by:
I have a solution with a web app and a web service. There is a virtual directory set up on my local server, //localhost/foo and it points to my development directory, c:\blah\blah\foo. When I...
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
1
by: lqnt1981 | last post by:
Following is the code in python that opens all files under a directories and puts a comma in place of whitespace, I can see the output on the command line, but I am not sure what to do in order to...
1
by: Paul Hemans | last post by:
VS2005... I need to persist a database between builds, while in development. The problem is that the mdf file is being deleted whenever I start the application from VS. There is a setting on the...
3
by: David V | last post by:
I'm having trouble copying DLLs from a folder in my project to the project's output directory. I have copied seven SQL CE DLLs (the SqlCe*.dll set) to a Libs folder in my project. The DLLs VS...
3
by: rahulsengupta895 | last post by:
I get this error when i compile the file driver.cpp which is linked to video.cpp.. both programs are visual c++ codes and are attached below for reference . 1>TutorialExample : error PRJ0007 :...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.