Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7428865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:52:36+00:00 2026-05-29T08:52:36+00:00

In our C++ program we want to process NetFlow data. The only tool for

  • 0

In our C++ program we want to process NetFlow data. The only tool for doing this that we’ve found is flow-tools, which we’ve installed and are running perfectly from the command line (Linux).

flow-tools is written in c, therefore we thought it might be possible to use it as a library in a c++ program, but we have no idea how to do this.

The gzip for flow-tools, ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-0.66.tar.gz, includes the c-source of the files, and the dependencies are in the lib-folder.

Is it at all possible to do this, and how? Might there be an alternative to flow-tools?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:52:37+00:00Added an answer on May 29, 2026 at 8:52 am

    It claims to be a library providing an API, so I expect it is possible, and even intended.

    If you want to use it, you’ll need to build the library, link it to your app, and use the documentation (including the source of the included commandline tools, which use that library) to figure out how to use the API.


    OK, so my current understanding is that the headers and libraries are installed on your system, and you’re using Debian package management.

    First, you need to know where the libraries and headers files are, so you can tell your build system where to find them: try

    $ dpkg-query -L flow-tools
    

    it should give you the directories in which the flow tools headers and libs are installed.

    So, next step is to make those headers and libraries available to your build system: if they’re in /usr/lib or /usr/local/lib and /usr/include or /usr/local/include, you can skip the paths. For example if you’re building with make, you can add something like

    FLOW_TOOLS_INC = <directory containing .h files>
    FLOW_TOOLS_LIB = <directory containing .a file(s)>
    CXXFLAGS += -I$(FLOW_TOOLS_INC) -L$(FLOW_TOOLS_LIB)
    

    you’ll need to add the specific library as well

    CXXFLAGS += -lft
    

    Now (as zr. said) you need to bring the API declaration into your source code and start writing against it, like so:

    extern "C" {             // it is a C library, and we're building C++ (right?)
    #include <flow-tools.h>  // or whatever the file name is
    }
    

    For more concrete details of how to use the library once you’re building against it, see the documentation and the source for the command-line utils that ship with it (apt-get source flow-tools should get this, or just use the tarball you linked).

    For more concrete details of how to configure your build system, see its documentation, or ask another question and actually say what it is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our main program is in java but the code that extracts our data from
We have a part of our program which can save a diagnostic file for
I have a CAB file that installs our program to Windows CE. I have
I'd like to know what you think about this part of our program is
We have an app that currently installs itself into 'program files\our app', and it
I want to handle the current running process in JAVA, the processess that are
I want to create a utility in Java to automate our building process. The
Suppose that we declared the line below in our program : List<Dictionary<string, string>> list
I have a program that we use to connect our Magento store to our
here's my first ever perl program: I want to make sure that if I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.