C++ porting

2 views
Skip to first unread message

Vladimir Škarupelov

unread,
Apr 26, 2008, 12:19:55 PM4/26/08
to ulno...@googlegroups.com
Hello,

I ported Rein's code to C++, the code can be found in SVN under project
*cg_cpp*.
Main C and C++ code differences are that in C++ version I created type
definitions matrix and vector, on top of the types I added methods
overriding. Is this is enough for now ? Any suggestions are welcome.

Cheers,
Vladimir

Toomas Laasik

unread,
Apr 27, 2008, 5:54:42 PM4/27/08
to ulno...@googlegroups.com
Current cg_cpp looks nice. It would be also handy if we could easily
switch from double to float. Possibly a typedef or define are ok for
this purpose.

Toomas

toomas_laasik.vcf

Toomas Laasik

unread,
Apr 28, 2008, 5:56:30 AM4/28/08
to ulno...@googlegroups.com
Hi all,

I added CppTest framework to our project. Currently there are no useful
tests, but now it is possible to write those with ease. Example test
suites cab be run adding --runtests parameter to the executable.

The thing needs some setup before you can use it. Here is a brief
outline for that:
* Compile cpptest into a static library and leave the result (probably
cpptest.a) into cpptest subdirectory. Under Windows I only needed to
invoke gcc on cpptest/src/* and add cpptest/win/config.h for inclusion.
Under linux this thing might be trickier.
* Edit your cg_cpp project
- add ../cpptest/src to include path
- add ../cpptest/cpptest.a as library to linker
* Now cg_cpp should compile without errors

You can write and save your tests under cg_cpp/tests directory.

More about CppTest can be found here:
http://cpptest.sourceforge.net/

Toomas

toomas_laasik.vcf
Reply all
Reply to author
Forward
0 new messages