fix: move tape storage and thread_alloc statics to cppad_lib for DLL … - #256
fix: move tape storage and thread_alloc statics to cppad_lib for DLL …#256Yunsen wants to merge 2 commits into
Conversation
|
Sorry for the delay in responding. I had to do some updating of CppAD to work with the new version of my development tools. See the recent commits on After merging the current main branch into a local copy of your pull request and running I get the following error: When I go into the testing build directory You will need to install xrst, so you can build the new documentation during your testing of CppAD. You can do this with the command: One thing you should fix. CppAD switched from 3 spaces for tabs to 4 because 4 is more standard (used by more devleopers). Another thing I would do in the first pull request is to just add the smipler new file Once we get this up and running, the others should be easier. P.S. I will add the new xrst developer documentation for the new function in tape_storage.cpp, so you can see how that is done. Thanks. |
|
OK!Since I am occupied by other things these days and I am not familiar with the xrst tools, the task will be delayed for some days. |
|
I forgot to mention that there is a way to compile and run just one of the tests or examples, case you are having trouble with It will create a file called tools/test_one.sh that can be used to run one test or example by its self. There also are many sub targets of check (that check a specific group of tests or examples, that are reported during run_cmake.sh). |
You can use the following commands to compile and run most of the C++ tests: |
fixing the odr problem in windows platform, we use middle layer functions defined in cpp files (something like memory allocator) to manage the static/global data. In order to avoid static/global data copy themselves into multiple DLL in windows platform