# Support for C++ extension in UNIX builds

- Thread: https://externals.io/message/4133
- Original archive: https://news-web.php.net/php.internals/4133
- Started by Mark Spruiell on 2003-08-22T20:20:01+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

---

## #4133 — Mark Spruiell — 2003-08-22T20:20:01+00:00

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

> > […]
>
>     *.cpp files are automatically compiled using $(CXX).  Make
>     sure that you use the sanctioned suffix.

Right, my C++ source files are being compiled correctly, the problem is with linking.

> > […]
to create the shared library.
>
>     libtool 1.4 does not support building DSOs in a portable way for any language but C.  Try
libtool 1.5.

I installed libtool 1.5, but it causes PHP builds to fail for other reasons, so I haven't been
able to verify whether it enables a successful build of my extension as a shared library.

- Mark
