| Veltas (325) | |
| Say I have a standard C++ program and have some 'extern' functions in other files that I want to include when compiling without #including. Then how do I go about this with CL? | |
|
|
|
| kbw (5371) | |
|
extern functions? Ok, I get it. Just add them to the command line. cl accepts .c, .cpp, or .lib files as input. | |
|
|
|
| Nexius (142) | |
|
You could use a library, as kbw said. But you don't normally use functions without including them in .h files. Maybe you might want to look into function prototypes, declare them in a header and define them in its respective cpp file. That way, the linker can resolve them. | |
|
|
|