-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefinition of function error on importing Differentiator.h in multiple source files #314
Comments
We need to mark all function definitions in |
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 2, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 3, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 3, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 3, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 3, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 3, 2024
vgvassilev
added a commit
that referenced
this issue
Jan 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, we have defined several functions in the
Differentiator.h
header file (and also in header files thatDifferentiator.h
includes). This causes redefinition errors if more than one source files includes theDifferentiator.h
header. Therefore, Ideally, we should not define functions in the header file.Consider this example,
a.cpp
b.h
b.cpp
Now compiling these files with clad enabled using a command such as,
gives following error:
The text was updated successfully, but these errors were encountered: