Sponsored Content
Top Forums Programming Using boost in program created by g++ Post 302749163 by kristinu on Thursday 27th of December 2012 04:22:00 PM
Old 12-27-2012
My makefile is in directory source. Running tree gives me.
My program resides in source/programs/raytrac

I really have no clue what I should do. Quite stuck.

Code:
cd source

tree  -d -L 3
.
├── fortran
│   ├── bin
│   │   ├── modBin
│   │   └── objBin
│   └── fmod
├── include
├── library
│   └── boost_1_52_0
│       ├── boost
│       ├── doc
│       ├── libs
│       ├── more
│       ├── status
│       └── tools
├── others
├── programs
│   ├── getmisfit
│   ├── getpdf
│   ├── getvel
│   ├── raytrac
│   ├── rdt
│   ├── surface
│   ├── tdarwin
│   ├── tracemisfit
│   ├── tracepdf
│   ├── tracepdf2d
│   └── tsimplex
└── scripts
    ├── awk
    ├── bash
    ├── html
    │   └── search
    ├── ksh
    │   └── TAG201011
    ├── latex
    ├── perl
    ├── python
    └── tcsh

I have done like this

Code:
g++ -traditional -Wno-non-template-friend -Wno-deprecated -O3 -DNDEBUG -Ilibrary ./programs/raytrac/raytrac.cc \
   -I./library/boost_1_52_0 -L./library/boost_1_52_0/libs -o raytrac

Ok , I seem to be getting something now

I am using

In the makefile I use

Code:
dir_raytrac = ./programs/raytrac
raytrac : $(dir_raytrac)/raytrac.cc $(dir_raytrac)/raytrac_doc.hh library
    $(C++) $(OPT) $(IDIR) $(dir_raytrac)/raytrac.cc \
    -I./library/boost_1_52_0 -L./library/boost_1_52_0/libs -o raytrac
    -mv raytrac ../bin

and in the program I use

Code:
  #include <boost/foreach.hpp>
  string hello ("Hello, world!");
  BOOST_FOREACH (char ch, hello) {
    cout << ch << endl;
  }
  cout << endl;


Last edited by kristinu; 12-27-2012 at 05:54 PM..
 

7 More Discussions You Might Find Interesting

1. Linux

How do I boost the Linux performace

Hi All, I installed Linux recently on my PC and finding it difficult to boost its performance. It takes hell lot of time to open Mozilla, text pad , & even the booting process is too slow, many a times I got to manually power off to shutdown the computer. I will be glad if you could help me... (18 Replies)
Discussion started by: jayfriend
18 Replies

2. Solaris

Sun Studio 10 + Boost 1.36

Is it possible to build Boost 1.35 using Sun Studio 10? I can build Boost 1.35 using Sun Studio 11 successful. However, i'm unable to build it using Sun Studio 10 using the exact method. I really apprecaite if any expert can help on this. Thanks, (2 Replies)
Discussion started by: shingpui
2 Replies

3. Solaris

boost thread not accessible to boost::move error

Hi All I am working unders Sun Solaris and I am not "/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>). Do you know if there are other solutions other than... (2 Replies)
Discussion started by: manustone
2 Replies

4. Programming

Boost C++ ASIO Networking

Hi, Based on the following example in the Boost C++ website: www. boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp]doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp I tried to create a similar TCP server that waits to accept a client connection... (0 Replies)
Discussion started by: tanlccc
0 Replies

5. Solaris

how to install boost 1_49_0 in solaris

hi guys, i downloaded boost1_49_0 tar.gz... then unzip and untar... how to install boost 1_49_0 in solaris plz help me (1 Reply)
Discussion started by: coolboys
1 Replies

6. UNIX for Dummies Questions & Answers

How do I declare boost?

Hello all, I am trying to "make" a database system, VDB (Veritas Data Base), and when I run "make" I receive the following error: VDBException.h:19: error: expected `)' before '*' token VDBException.h:20: error: expected `)' before '*' token VDBException.h:43: error: expected `)' before '*'... (4 Replies)
Discussion started by: Tyler_92
4 Replies

7. Programming

Boost.Test and CMake

Hi, I just started using CMake and the Boost Libraries. In this progress I encountered some problems. One of these problems is combining Boost unit tests with cmake. I don't know how to set the whole project up. I tried to set up a simple test project. This contains a main.cpp a comp.cpp and the... (0 Replies)
Discussion started by: ElCoyote
0 Replies
IMPTRACE(1)						    BSD General Commands Manual 					       IMPTRACE(1)

NAME
imptrace -- report importance donation events in real time SYNOPSIS
imptrace [-i [-s]] [-p pid] [-d] DESCRIPTION
The imptrace utility displays a trace of importance donation events. Importance donation is used by adaptive jobs on the system to manage their priority on the system. See xpc_transaction_begin(3) and launchd.plist(5) for more information about the mechanism and its use. The options are as follows: -i Show internal kernel boosts -s Show stacks for internal boosts. -p pid Limit events to the process identified by pid. -d Display raw Dtrace output; do not reformat timestamps and sort output. The traced events are as follows: BOOSTED The specified process has received a boost and transitioned out of the background. UNBOOST The specified process has dropped its last remaining boost and transitioned back into the background. Recv Boost The specified process has received a boost and accepted ownership of that boost in userspace, usually by dequeuing the boost- ing message. Drop Boost The specified process has dropped a boost. ____ Int Boost Internal boost events are only emitted when tracking of kernel internal boosts is activated with the -i option. Their use and meaning is subject to change and dependent on the implementation details of importance donation. EXAMPLES
The imptrace script will output one line for each event, for example a typical boosting exchange might look as follows: 0000:00:00.000000000 EVENT PROCESS BOOSTS NOTES 0023:15:13.844332886 BOOSTED 22:configd 0023:15:13.844372519 Recv Boost 22:configd 1 from 275:SystemUIServer 0023:15:13.844497860 UNBOOST 22:configd Boosted for 0 ms 0023:15:13.844509452 Drop Boost 22:configd 0 In this case, SystemUIServer (PID 275) has sent a message to configd (PID 22) which caused it to be boosted. configd then dropped the boost causing it to be become unboosted and return to background state. Boosted and unboost events may appear before the triggering recv or drop boost. NOTES
imptrace is implemented using Dtrace. For information about the probes used, see comments in the imptrace source. When debugging an adap- tive service, it may be helpful to combine these probes with other Dtrace providers; however, they should be considered unstable. OS X
May 01, 2013 OS X
All times are GMT -4. The time now is 05:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy