-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebuggingNotes.txt
More file actions
13 lines (10 loc) · 874 Bytes
/
Copy pathdebuggingNotes.txt
File metadata and controls
13 lines (10 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
C++ debuggin notes
I am new to c++ so imma write some notes down
1. MAKE SURE your class has a default constructor if you decide to declare it but not instantiate.
2. check to see if a similar constant defined method is required
3. make sure methods are defined as public if you want to use thems
4. if vectors/tensors are giving weird results, make sure that you (ME) did not for get to fix things after copy pasting
5. if you are getting an odd warning using a friend operator that states that the definition isnt defined in hte namespace,
just implement the friend function in the relevant header file, rather than declaring it and implementing in the .cpp file
- idk why. sometimes having the definition and implementation in separate files is ok. I assume it is some user error
6. No SOURCES given to target: issue <- haha make sure name is spelled right