解决方案 »

  1.   

    http://stackoverflow.com/questions/13694605/how-to-use-c-source-files-in-a-c-project
      

  2.   


    先谢过, 不过, 不是这个问题, 不是要c、cpp混合编程,
    而是 DLL项目是纯c的, 调用的EXE项目是纯CPP
      

  3.   

    函数声明前加extern "c"试试
      

  4.   


    解决了, 修改DLL导出函数的头文件为:#ifdef __cplusplus
    extern "C" { 
    #endif __declspec(dllexport) int mytest();#ifdef __cplusplus
     }
    #endif