score:1
Accepted answer
to be able to debug an application, you need to compile it using the -g
(debug) flag:
cxxflags=-g
$(objectsqueue): $(sourcesqueue)
$(cxx) $(cxxflags) -c $(sourcesqueue) $(includes)
...
testqueue: $(objectsqueue) $(objectstestqueue)
$(cxx) $(cxxflags) -o queuetests.exe $(objectsqueue) $(objectstestqueue)
....
you need to use this flag for all compilation rules.
Source: stackoverflow.com
Related Query
- "No source available for main()" error when debugging simple C++ in Eclipse with gdb
- No source available for "main()" error for c++ in Eclipse
- "Cannot switch on a value of type String for source level below .." error in Eclipse
- Weird error from the Eclipse GWT plugin when having a separate source folder for resources
- Eclipse error: No source available for ""
- Eclipse GDB Launches - "No source available for "gdb[38].proc[42000].threadGroup[...)" "
- How to avoid no main class and no class def found error using DropBox and Eclipse for Java
- Trying to debug in Eclipse, getting error 'No Source Available for "main() at [hex number]"'
- Source not found for URLClassPath$JarLoader.getJarFile(URL) line: not available error occurs if i start tomcat in myeclipse
- Debug error "no source available for main()" with SDL project
- No source available for "realloc() " in Eclipse in Ubuntu
- In eclipse can we generate main method for a java class from the source
- Eclipse debugger C++ 'No source available for "std::ostream::operator<<()"'; 'std::endl' issue
- Get source jar files attached to Eclipse for Maven-managed dependencies
- Admob Error in Eclipse for android:configChanges
- "Unresolved inclusion" error with Eclipse CDT for C standard library headers
- How to attach source or JavaDoc in eclipse for any jar file e.g. JavaFX?
- How to fix Eclipse validation error "No grammar constraints detected for the document"?
- "string could not resolved" error in Eclipse for C++ (Eclipse can't resolve standard library)
- eclipse magic: ... Syntax error, varargs are only available if source level is 1.5 or greater
- Error launching Eclipse 4.4 "Version 1.6.0_65 of the JVM is not suitable for this product."
- Error :- java runtime environment JRE or java development kit must be available in order to run eclipse
- "Could not find the main class" error when running jar exported by Eclipse
- 'Open Declaration' in Eclipse navigates to class files instead of to source files for Android Libraries
- Using Proguard for Android in Eclipse got Error
- Where can I find the source code for the Android Development Tools (ADT) plugin for the Eclipse IDE?
- Error while installing Maven Integration for Eclipse
- Is the Qt Eclipse integration plugin still available for download?
- Eclipse error setting up Maven project for class exercise: Check $M2_HOME environment variable and mvn script match
- Eclipse : how we take arguments for main when run
More Query from same tag
- Error while running Mapreduce(yarn)from windows eclipse
- Android - Where are custom APK files stored?
- Custom Eclipse (CDT) project layout, different from folder structure
- Java Eclipse - Exporting issue
- How to install the eclipse source code via "Eclipse Marketplace" or "Install New Software" option from eclipse menu?
- How does java treat the input of the "enter" key on a keyboard
- NoSuchMethodError: org.apache.lucene.document.Field
- How to use Sony Xperia Z in Eclipse(ADT Bundle) for USB Debugging
- Send Maven output to console and log file using pom
- Android Emulator CONNECT tunnel missing expected headers
- Eclipse java editor bar
- How to get code assist for HTML tag class attribute in Eclipse?
- Runtime Exception unable to start MainActivity
- NDK Native Class not found Error
- check file icon in project tree using SWT Bot eclipse
- How to find a particular bean in pom-imported dependencies?
- Eclipse and Git - Repositories from GitHub not available from Import menu (Projects from Git are available)
- printing with java in eclipse for arrays
- Significance of com.android.ide.eclipse.adt.LIBRARIES in build path?
- Eclipse is not setting "Import" statement automatically
- How To Manually Add Project To Eclipse Without Using Eclipse
- Eclipse debug (use F5) in servlet and in Main application
- appcompat_v7 errors different api
- Moving From Eclipse to Visual Studio 2008
- Eclipse C++ - cannot resolve string type
- Strange uncaught error with GWT, UmbrellaException
- TestNG not grouping results from a single method
- Eclipse ADT crash when autocomplete popup
- Eclipse can't recognize my javax.ws.rs.core.Response object
- running eclipse on linux, "eclipse is not executable."