In Visual Studio 2008, I have a solution which contains two projects: one project is a .dll, the other is a command line application which calls the .dll.
If I remove one of the files ("ast.c"), then add it straight back in, I get the following error.
How do I fix this error?
Error 22 error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl ast_get_int_value(struct ast_node *,void *)" (__imp_?ast_get_int_value@@YAHPAUast_node@@PAX@Z) referenced in function "double __cdecl d_low(struct ast_node *,struct ast_node *,struct ast_node *,struct ast_node *,void *)" (?d_low@@YANPAUast_node@@000PAX@Z) main.obj main