Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Why am I getting a linker error with my global variables? - Computer Programming - Seneca Polytechnic College
CP-SPC
Computer Programming - Seneca Polytechnic College
β’
4y ago
β’
17 replies
Revan
Why am I getting a linker error with my global variables?
I setup two global variables in my header file and I used the extern key word to declare them
, but im still getting a linker error saying its an undefined reference
?
Computer Programming - Seneca Polytechnic College
Join
Welcome to Seneca Polytech's Programming Community! π Whether you're into CPA or CPP, all programs are welcome!
2,297
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Not sure why I'm getting a linker error
CP-SPC
Computer Programming - Seneca Polytechnic College / ask-a-question
4y ago
Not sure why I am getting an error here
CP-SPC
Computer Programming - Seneca Polytechnic College / ask-a-question
4y ago
I dont know why i am getting a segementation fault here
CP-SPC
Computer Programming - Seneca Polytechnic College / ask-a-question
4y ago
Not sure why I am getting a segementation fault in the matrix but locally i can run my program
CP-SPC
Computer Programming - Seneca Polytechnic College / ask-a-question
4y ago