# Why this link error

- Thread: https://externals.io/message/21697
- Original archive: https://news-web.php.net/php.internals/21697
- Started by taft on 2006-01-27T03:11:53+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21697 — taft — 2006-01-27T03:11:53+00:00

URL: https://externals.io/message/21697#21697

I use MVC 6 to get my extension compiled, but when it linked, the IDE issued
the following error:

myfile.obj : error LNK2001: unresolved external symbol _executor_globals_id
Release/php_myfile.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

my code is simple:

PHP_FUNCTION(create_var)
{
 zval *new_long =NULL;
 if( ZEND_NUM_ARGS() !=0 )
  WRONG_PARAM_COUNT;

 MAKE_STD_ZVAL(new_long);
 new_long -> type = IS_LONG;
 new_long -> value.lval = 100;
 ZEND_SET_SYMBOL(EG(active_symbol_table),"new_long_name",new_long);
 RETURN_TRUE;
}
I already included php4ts.lib into my IDE. I need you help thank you!

--
please visit  my blog http://blog.csdn.net/taft
