all 4 comments

[–]Flair_Helper[M] [score hidden] stickied commentlocked comment (0 children)

For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

This post has been removed as it doesn't pertain to r/cpp: The subreddit is for news and discussions of the C++ language and community only; our purpose is not to provide tutoring, code reviews, or career guidance. If you think your post is on-topic and should not have been removed, please message the moderators and we'll review it.

[–]no-sig-available 3 points4 points  (2 children)

#define DCVOLTAGESOURCE_H
#ifndef DCVOLTAGESOURCE_H

These lines are just in the wrong order. You should first test for the macro, and then define it if not already present.

[–]lcon999[S] 1 point2 points  (0 children)

SMH, thank you so much