To my knowledge I'm initializing a string a fairly normal way and when I debug, the variables window in my IDE (CLion) shows its value as <incomplete type>
. I have some simple code that results in the issue for the string variable Bob
.
#include <iostream>
int main() {
std::string Bob = "this doesn't show up in the variables window";
std::cout << Bob << std::endl;
return 0;
}
I don't know what impact it has but I'll include the CMakeLists file that appears to be the simplest that I can use.
cmake_minimum_required(VERSION 3.8)
project(testing123)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11"}
set(SOURCE_FILES main.cpp)
add_executable(testing123 ${SOURCE_FILES})
set(CMAKE_CXX_COMPILER "/cygdrive/c/cygwin64/bin/clang++")
set(CMAKE_C_COMPILER "/cygdrive/c/cygwin64/bin/clang++")
I looked at the other questions and they all had to do with classes and pointers which I can't see to be directly related, so if they are to blame for this, I'd appreciate an explanation as to how that would be.
#include <string>
? – Kolnos#include <string>
appears to have no effect, Matt – Sound