Archive

Posts Tagged ‘c/c++’

C Compile on Demand

November 24th, 2008

C Compile on Demand

If you want to use C/C++ as CGI you need compile the code you can compile on demand check C Cod WebSite

See the Documentation some aspects similars to ASP(VBScript).

you now:

#!/usr/bin/php
#!/usr/bin/perl
#!/usr/bin/python
#!/bin/bash
...

Add this #!/usr/bin/ccod to use C/C++, one simple example:

#!/usr/bin/ccod

Download C Cod.

develop, network, projects, unix/linux, web, windows ,

PDF Libraries

October 2nd, 2008

PDF Libraries

Sometimes we need create or export data into a PDF:

.NET:

http://www.pdfsharp.com, http://www.codeplex.com/Print2Pdf

C++:

http://libharu.org

Perl:

http://search.cpan.org/~markusb/PDF-Create/lib/PDF/Create.pm

sudo perl -MCPAN -e 'install PDF::Create'

PHP:

http://www.fpdf.org, http://www.digitaljunkies.ca/dompdf, http://pear.php.net/package/File_PDF

Python:

http://www.reportlab.org

wget -c http://www.reportlab.org/ftp/ReportLab_2_2.tgz
tar xvzf ReportLab_2_2.tgz
cd ReportLab_2_2
sudo python setup.py install

Java:

http://www.lowagie.com/iText, http://www.pdfbox.org

Ruby:

http://ruby-pdf.rubyforge.org/pdf-writer

sudo gem install pdf-writer

develop , , , , , ,

Compile Perl Win32

August 17th, 2008

Compile Perl Win32

First you need download the Visual Studio 2008 C++ Express and Perl source code.

Use 7-zip to decompress perl-5.10.0.tar.gz

Edit Makefile (on perl-5.10.0\win32\) to set C++ Compiler:

CCTYPE = MSVC90FREE

Run CMD.EXE and write this:

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
cd perl-5.10.0
cd win32
nmake
nmake test
nmake install

Compile process will take some time but you can download MyPerl-5.10.0.zip
extract on C:\Perl to include Perl on your path:

set PATH=%PATH%;C:\Perl\bin

Alternatives if you don’t want to compile: ActivePerl or Strawberry Perl.

develop, windows , ,