943,527 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 2911
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 16th, 2008
0

Re: Problem Using SetSuspendState()

$(BIN): $(OBJ)
Those macros are defined elsewhere in the makefile, and that line shows very little information about your specific problem. Post the whole makefile.
Last edited by dougy83; Sep 16th, 2008 at 11:48 am.
Reputation Points: 85
Solved Threads: 45
Posting Whiz in Training
dougy83 is offline Offline
275 posts
since Jun 2007
Sep 16th, 2008
0

Re: Problem Using SetSuspendState()

C++ Syntax (Toggle Plain Text)
  1. # Project: Project2
  2. # Makefile created by Dev-C++ 4.9.9.2
  3.  
  4. CPP = g++.exe -D__DEBUG__
  5. CC = gcc.exe -D__DEBUG__
  6. WINDRES = windres.exe
  7. RES =
  8. OBJ = "C:/Documents\ and\ Settings/U1/Desktop/main.o" $(RES)
  9. LINKOBJ = "C:/Documents and Settings/U1/Desktop/main.o" $(RES)
  10. LIBS = -L"C:/Dev-Cpp/lib" C:/Dev-Cpp/lib/libpowrprof.a -g3
  11. INCS = -I"C:/Dev-Cpp/include"
  12. CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
  13. BIN = Project2.exe
  14. CXXFLAGS = $(CXXINCS) -g3
  15. CFLAGS = $(INCS) -g3
  16. RM = rm -f
  17.  
  18. .PHONY: all all-before all-after clean clean-custom
  19.  
  20. all: all-before Project2.exe all-after
  21.  
  22.  
  23. clean: clean-custom
  24. ${RM} $(OBJ) $(BIN)
  25.  
  26. $(BIN): $(OBJ)
  27. $(CPP) $(LINKOBJ) -o "Project2.exe" $(LIBS)
  28.  
  29. "C:/Documents\ and\ Settings/U1/Desktop/main.o": C:/Documents\ and\ Settings/U1/Desktop/main.cpp
  30. $(CPP) -c "C:/Documents and Settings/U1/Desktop/main.cpp" -o "C:/Documents and Settings/U1/Desktop/main.o" $(CXXFLAGS)
Reputation Points: 42
Solved Threads: 13
Junior Poster in Training
unbeatable0 is offline Offline
90 posts
since Sep 2008
Sep 16th, 2008
-1

Re: Problem Using SetSuspendState()

move your project to a folder that does not contain spaces, such as c:\dev-c++\source
Last edited by Ancient Dragon; Sep 16th, 2008 at 11:52 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,945 posts
since Aug 2005
Sep 16th, 2008
0

Re: Problem Using SetSuspendState()

"move your project to a folder that does not contain spaces, such as c:\dev-c++\source"

Thanks! I didn't think it'll make a trouble to create it on the desktop. It works great now!
You deserve a reputation point from me
Thanks again!
Reputation Points: 42
Solved Threads: 13
Junior Poster in Training
unbeatable0 is offline Offline
90 posts
since Sep 2008
Sep 16th, 2008
0

Re: Problem Using SetSuspendState()

The project compiles when source is on the desktop and project is somewhere else.

Have you determined whether there's more than 1 gcc compiler present yet?

You can always uninstall dev-c++, and reinstall it. To check for another gcc: uninstall dev-c++, from the command prompt run "gcc" - if something runs, then gcc is present.
Reputation Points: 85
Solved Threads: 45
Posting Whiz in Training
dougy83 is offline Offline
275 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: retuning a const refrence to a vector of pointers
Next Thread in C++ Forum Timeline: Decimals lost when converting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC