我可以用c++;? 我可以用C++代替C(WORDOWS10,PHP7.2)< /P>编写PDO扩展吗?

我可以用c++;? 我可以用C++代替C(WORDOWS10,PHP7.2)< /P>编写PDO扩展吗?,php,pdo,php-extension,Php,Pdo,Php Extension,这是pdo ext应涵盖的内容(根据官方文件): config.m4 # unix build script config.w32 # win32 build script CREDITS package.xml # meta information about the package pdo_SKEL.c # standard PHP extensio

这是pdo ext应涵盖的内容(根据官方文件):

config.m4                  # unix build script
  config.w32                 # win32 build script
  CREDITS
  package.xml                # meta information about the package
  pdo_SKEL.c                 # standard PHP extension glue
  php_pdo_SKEL.h
  php_pdo_SKEL_int.h         # driver private header
  SKEL_dbh.c                 # contains the implementation of the PDO driver interface
  SKEL_stmt.c                # contains the implementation of the PDO statement interface
  tests/
我可以将
pdo_SKEL.c
重命名为
pdo_SKEL.cpp
,并在config.w32中将c文件名更改为cpp吗

我尝试了一些简单的代码和函数,它很有效。 但每次我想把外线注册到pdo的时候, 汇编不会通过

Error   LNK2019 unresolved external symbol "int __cdecl php_pdo_register_driver(struct pdo_driver_t *)" (?php_pdo_register_driver@@YAHPEAUpdo_driver_t@@@Z) referenced in function "int __cdecl zm_startup_pdo_my_mysql(int,int)" (?zm_startup_pdo_my_mysql@@YAHHH@Z)   pdo_module  C:\php\pdo_module.obj   1