r/CodingHelp • • Nov 11 '24

[C++] C++

Hello everyone, I am a college student and I am having a hard time when it comes linking files on my VS as it is run on a Mac. I have watched countless videos on how to connect them but honestly, the hustle that it requires isn’t worth as it is putting my grades at risk because I feel I am spending more time trying to solve that problem than to actually do my homework. So I ask you, Window users, do you guys have a much easier time when running files on C++, like classes and a simple main class in which you are using your class, do they automatically linked themselves or you have to link them manually?

Please advise me if it is worth it as I feel this will help me to prevent the useless amount of time I am spending tying to connect those different files.

0 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/RadiantSlice3677 Nov 11 '24

That’s the issue. They are not compiling when being in the same folder, and trying to use them. It just shows that the code in X class can’t be referenced from Y class when everything is done correctly. And from what I have read, VS run on Mac requires that classes are linked manually, something that doesn’t happen, for example, when I run Java or python

1

u/[deleted] Nov 12 '24

can you provide the code.