In CMakeLists.txt, change the line
ADD_EXECUTABLE(hello.wt hello.C)
into
ADD_EXECUTABLE(hello.wt hello.C myfile.cpp myfile2.cc)

.C, .cpp, .cc, ... are all valid C++ file extensions. Add as many
files as you want. Or write your own Makefile.

It's not in our Wiki because this is a basic C++ question, and there
are many many different methods that people use to compile c++ files.
We use CMake, so you should look in cmake's documentation to see how
cmake works. You, as a user of Wt, don't have to use cmake for your
project. Any other method will go as well, provided you configure your
project correctly.

Wim.

2010/9/26 Mohammed Rashad <[email protected]>:
> How to compile c++ files to make .wt files? . I can't find any wiki entry
> for this.
>
> --
> Rashad
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to