- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to create the .o file and redirect it to ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 08:40 PM
тАО06-20-2007 08:40 PM
Modelo.o: Modelo.cc Modelo.h
$(CCC) $(CFLAGSCC) -c Modelo.cc
i want the .o file to go ../obj
thanks
Solved! Go to Solution.
- Tags:
- make
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 08:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 08:59 PM
тАО06-20-2007 08:59 PM
Re: How to create the .o file and redirect it to another directory -- Makefile
../obj/Modelo.o: Modelo.cc Modelo.h
$(CCC) $(CFLAGSCC) -c Modelo.cc -o $@
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 09:20 PM
тАО06-20-2007 09:20 PM
Re: How to create the .o file and redirect it to another directory -- Makefile
Modelo.o: Modelo.cc Modelo.h
$(CCC) $(CFLAGSCC) -c Modelo.cc
cp *.o ../../obj
rm *.o
../obj/Modelo.o:
../obj/Modelo.o: Modelo.cc Modelo.h
$(CCC) $(CFLAGSCC) -c Modelo.cc -o $@
is now calling g++ instead of aCC
[]-pedro:/home/pedro/MODELO_CC>make
g++ -c -o Main_Program.o Main_Program.cc
very strange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 10:52 PM
тАО06-20-2007 10:52 PM
Re: How to create the .o file and redirect it to another directory -- Makefile
Modelo.o: Modelo.cc Modelo.h
$(CCC) $(CFLAGSCC) -c Modelo.cc
cp *.o ../../obj
rm *.o
I'm not sure why you want to do it like this. This defeats total build avoidance. You should tell the compiler and make exactly where your files are and not have intermediate stages.
../obj/Modelo.o: Modelo.cc Modelo.h
$(CCC) $(CFLAGSCC) -c Modelo.cc -o $@
>is now calling g++ instead of aCC
I'm not sure why? Did you define CCC=aCC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 11:35 PM
тАО06-20-2007 11:35 PM
Re: How to create the .o file and redirect it to another directory -- Makefile
CCC = aCC
i am using aCC with OCCI form Oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 06:17 PM
тАО06-21-2007 06:17 PM
Re: How to create the .o file and redirect it to another directory -- Makefile
That should do it. I'm not sure if make -p would be of any help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2007 07:57 PM
тАО07-06-2007 07:57 PM
Re: How to create the .o file and redirect it to another directory -- Makefile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2007 10:35 PM
тАО07-09-2007 10:35 PM