Skip to content
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

done #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

done #93

wants to merge 1 commit into from

Conversation

VVVVictorJ
Copy link

@VVVVictorJ VVVVictorJ commented May 3, 2022

遇到重定义问题,知道是头文件重复引入的问题。应该只引入一次即可,但是cmake没有这个编译参数,又不能更改main函数,只能在子模块里改,cpp文件内放入一个宏和include头文件,main函数调用不同头文件,头文件有pragma once,所以只会引入一次lib库文件。mandel和rainbow合并成一个文件就可以避免出现这种情况,
Tabby_DyRrT2uytn
开始困扰我的地方在于我一直以为是只能改cmakelists.txt,但是cmake里面没有课件上写的target_add_definitions函数,最后也是看答案了(😔,结果发现就差一步,太难受了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant