2010-12-02 9 views
25

मैंने एक्लिप्स (हेलीओस) सीडीटी के साथ एक हैलो वर्ल्ड सी ++ प्रोजेक्ट बनाया है। यह ठीक संकलित। लेकिन मैं मेकफ़ाइल सीडीटी जेनरेट करना चाहता हूं। मैं इसे प्रोजेक्ट फ़ोल्डर/डीबग/रिलीज फ़ोल्डर्स या src फ़ोल्डर्स में नहीं ढूंढ सकता। मुझे यह मेकफ़ाइल कहां मिल सकता है?एक्लिप्स सीडीटी द्वारा उत्पन्न मेकफ़ाइल कहां है?

उत्तर

17

यदि आप current builder = CDT internal builder के साथ डिफ़ॉल्ट सेटेटिंग का उपयोग करते हैं, तो कोई फ़ाइल नहीं है। यदि आप current builder = GNU make चुनते हैं, तो आप डीबग फ़ोल्डर में मेकफ़ाइल देखेंगे। ,>propertiesTool Chain Editor चयन तो Current BuilderGnu Make Builder में चयन -

+0

मेरे पास कोई डीबग फ़ोल्डर नहीं है – JohnyTex

5

डिफ़ॉल्ट रूप से आपके पास [वर्कस्पेस]/[प्रोजेक्ट फ़ोल्डर]/डीबग/मेकफ़ाइल होना चाहिए। क्या आपने डिफ़ॉल्ट वातावरण में कोई बदलाव किया है?

यहाँ एक Helios (विंडोज़/cygwin) स्थापना से HelloWorld नमूना परियोजना makefile है:

 
################################################################################ 
# Automatically-generated file. Do not edit! 
################################################################################ 

-include ../makefile.init 

RM := rm -rf 

# All of the sources participating in the build are defined here 
-include sources.mk 
-include subdir.mk 
-include src/subdir.mk 
-include objects.mk 

ifneq ($(MAKECMDGOALS),clean) 
ifneq ($(strip $(C++_DEPS)),) 
-include $(C++_DEPS) 
endif 
ifneq ($(strip $(C_DEPS)),) 
-include $(C_DEPS) 
endif 
ifneq ($(strip $(CC_DEPS)),) 
-include $(CC_DEPS) 
endif 
ifneq ($(strip $(CPP_DEPS)),) 
-include $(CPP_DEPS) 
endif 
ifneq ($(strip $(CXX_DEPS)),) 
-include $(CXX_DEPS) 
endif 
ifneq ($(strip $(C_UPPER_DEPS)),) 
-include $(C_UPPER_DEPS) 
endif 
endif 

-include ../makefile.defs 

# Add inputs and outputs from these tool invocations to the build variables 

# All Target 
all: HelloWorld.exe 

# Tool invocations 
HelloWorld.exe: $(OBJS) $(USER_OBJS) 
     @echo 'Building target: [email protected]' 
     @echo 'Invoking: Cygwin C++ Linker' 
     g++ -o"HelloWorld.exe" $(OBJS) $(USER_OBJS) $(LIBS) 
     @echo 'Finished building target: [email protected]' 
     @echo ' ' 

# Other Targets 
clean: 
     -$(RM) $(C++_DEPS)$(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) HelloWorld.exe 
     [email protected] ' ' 

.PHONY: all clean dependents 
.SECONDARY: 

-include ../makefile.targets 
+0

शुक्रिया.मैं पूरे कंप्यूटर पर एक खोज किया था और एक नहीं मिल रहा। यह फ्लाई पर उत्पन्न हो सकता है और स्वचालित रूप से हटा दिया जा सकता है? – firsttestcdt

+1

यह अजीब बात है। मेरी सभी सीडीटी परियोजनाओं को साफ करने के बाद भी, उनके मेकफ़ाइल हटाए नहीं जाते हैं। – belwood

4

केवल एक चीज मैं के बारे में सोच सकते हैं कि makefile नहीं बनाया जाता है। अपनी प्रोजेक्ट पर क्लिक करें, मेनू project ->properties पर जाएं, बाएं फलक में C/C++ Build का चयन करें, और सुनिश्चित करें कि Generate Makefiles automatically चेकबॉक्स चेक किया गया है।

+0

फिर क्या? मेकफ़ाइल पॉपअप कब होना चाहिए? – JohnyTex

संबंधित मुद्दे