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

引入的文件头顺序问题 导致无法正常编译((.text+0x20): undefined reference to `main') #8

Open
csijun opened this issue Apr 8, 2022 · 0 comments

Comments

@csijun
Copy link

csijun commented Apr 8, 2022

image

在 01 check_dimension.cu 文件中,进行编译会报错,
image
调整引入顺序后可正常编译
#include <stdio.h>
#include <cuda_runtime.h>

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

No branches or pull requests

1 participant