Hello!
I was sent some C++ code that will be used to process files, by creating an object that takes two arguments: one is a string with the path for a (local) file, the other a stringstream where the result will be stored.
Since there was no main in the code I received, I have written my own - but when compiling (g++ in ubuntu) there's this error I can not solve:
The main I wrote:Code:error: conversion from ‘std::stringstream*’ to non-scalar type ‘std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >’ requested
The person who I got the code from is away in holidays and unfortunately, unreachable, so if anyone could point me out what I am doing wrong, I'd be much appreciatedCode:#include <iostream> #include <fstream> #include <sstream> #include <string> #include "emailParser.h" using namespace std; int main (int argc, char *argv[]) { string myfile = (string)argv[1]; stringstream ftw = new stringstream(); EmailParser(myfile, ftw); return 0; }
Thanks!
=edit=
I can provide the full code if it helps



LinkBack URL
About LinkBacks




