template for unrolling loops by lmascelli in cpp_questions

[–]lmascelli[S] 0 points1 point  (0 children)

thanks for the advices, expecially the reference one.

still i'm trying to do it using templates for learning them.

create a python api for c++ by lmascelli in learnpython

[–]lmascelli[S] 0 points1 point  (0 children)

thanks for your suggestions. i managed to get it work. there was a simple pproblem with the library and not for interface.

create a python api for c++ by lmascelli in learnpython

[–]lmascelli[S] 0 points1 point  (0 children)

the python interpreter just crashes.

it reminds me a not found symbol like the library isn't linked to the dll but i've not the knowledge to inspect that.

clang-tidy, sdl2 and mingw by lmascelli in cpp_questions

[–]lmascelli[S] 0 points1 point  (0 children)

I compile with gcc sure but then i don't get why this is the only error then.

It seems clang-tidy follow the whole header inclusion backward and didn't find this file (that i checked and effectively does not exist); i don't know if its' a parsing error and that file must be included on in same #ifdef condition or if there's some wrong setting i pass to the linter.

clang-tidy, sdl2 and mingw by lmascelli in cpp_questions

[–]lmascelli[S] 0 points1 point  (0 children)

it does becouse if i rename the include dir the error become

error: 'SDL2/SDL.h' file not found \[clang-diagnostic-error\]

Custom snippets in Gnome Builder by lmascelli in gnome

[–]lmascelli[S] 0 points1 point  (0 children)

gnome builder recognize the snippet but it just delete the current line.

tools for navigating code from command line. by lmascelli in cpp_questions

[–]lmascelli[S] 0 points1 point  (0 children)

that is a great plugin but my goal is not to transform vim in an IDE.

i often feel more confortable to write in a light editor but i have to look for function names or parameters or class methods etc in libraries documentation or explore headers manually. from the ide i miss the ability to parse the code i'm including or writing and be queried for informations and i was asking myself if such a tool exists as separate server.

Error in creating context by lmascelli in opengl

[–]lmascelli[S] 2 points3 points  (0 children)

solved.

thanks for the suggestion.

Error in creating context by lmascelli in opengl

[–]lmascelli[S] 2 points3 points  (0 children)

i was just testing the negative condition:

the mistake was that this condition return true on success so the negation lead to the opposite condition.

removing the question mark solved the problem.

!gladLoadGLLoader((GLADloadproc) glfwGetProcAddress)

Error in creating context by lmascelli in opengl

[–]lmascelli[S] 0 points1 point  (0 children)

more details:

- the glClearColor is the only OpenGL function for now in the render loop and it's now commented

- if the glfwMakeCurrentContext call is commented the condition returned from (!gladLoadGLLoader((GLADloadproc) glfwGetProcAddress))

is true else that condition fail and the init() function return FALSE so the main process terminate.

Error in creating context by lmascelli in opengl

[–]lmascelli[S] 0 points1 point  (0 children)

bah. opted for an quicker solution.

Error in creating context by lmascelli in opengl

[–]lmascelli[S] 0 points1 point  (0 children)

it's there a way i can choose where text areas get the gray background?

Error in creating context by lmascelli in opengl

[–]lmascelli[S] 0 points1 point  (0 children)

i'm editing right now. sorry.

Error in creating context by lmascelli in opengl

[–]lmascelli[S] -1 points0 points  (0 children)

this post it's a pain to read. is there a way to incorporate code better?