Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
CristCD2957y@bkwilliams Yeah VS is quite annoying with that. I always had to mark my .h as pragma once so it wouldn't try to compile them multiple times and break
-
endor56667y@Zezura it's telling me that all my methods are already defined in main.obj - I haven't checked the compile flags though, gonna give it a look
@CristCD not even #pragma once helps -
CristCD2957y@endor clean solution and then build. If that doesn't work I think you can manually delete the compiled files and it won't complain
-
endor56667yAlready tried cleaning the solution, I guess I'll have to nuke those build files and redo from scratch :/
-
CristCD2957y@endor Yeah, even creating a new project and copying over the files could work. VS is a great IDE, but really stupid sometimes
-
mhudson12937yIf g++ is working, why bother with vstudio?
I'll fire up VS for .net work, but for good ol fashioned C or C++, I'm pretty happy using CodeLite. -
endor56667y@mhudson I'm using g++ on ubuntu, and I wanted to try something new on windows (I still had Dev-C++).
-
mhudson12937y@endor yeah, dev-c++ is pretty old (I'm surprised it's still around!). There are other very decent code editors available on Windows. I hear good things about CLion (never used it though), and I've been fairly pleased by CodeLite.
If VStudio is getting in the way of you gettin' shit done, and you can use g++, you have lots of options. :-) -
endor56667y@Zezura nvm I'm an idiot, I had #include "Rectangle.cpp" instead of "Rectangle.h". Oops :D
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Vs studio 17, Y U NO COMPILE MAH C++? It's literally one tiny program, with only one "Rectangle" class. g++ likes it and compiles it clean, why can't you be more like him? :(
undefined
c++
vs2017
compile error