From: ALoR <Al...@io...> - 2002-04-27 16:24:01
|
At 18.06 27-04-2002, Simon Richter wrote: >You are using gcc 3.0, which has no implicit "using namespace std;". If >you insert this line (a good place would be after each occurence of >"#include <string>"), it should compile. i've added it on line 134 of ./ospmd/ospmd.h but now the error is: g++ -c -pipe -Wall -g -I../inc -DOSPMD_DEBUG ospmd.cpp -o ospmd.o g++ -c -pipe -Wall -g -I../inc -DOSPMD_DEBUG acpi_interface.cpp -o acpi_interface.o acpi_interface.cpp: In member function `virtual int acpi_interface::get_battery_details(unsigned int, ALL_BAT_DATA*)': acpi_interface.cpp:566: conversion from `battery*' to non-scalar type `std::__normal_iterator<battery*, std::vector<battery, std::allocator<battery> > >' requested acpi_interface.cpp: In member function `std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > acpi_interface::split_proc_entry(const char*)': acpi_interface.cpp:1110: no matching function for call to `transform(std::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unknown type>)' make: *** [acpi_interface.o] Error 1 for the developers: please make it compile fine under gcc 3.0.x ;) bye, ALoR |