[glade--] Newbie Constructor problems
- From: "Benderli, Serdar" <benderls lafayette edu>
- To: glademm-list gnome org
- Subject: [glade--] Newbie Constructor problems
- Date: Thu, 19 Apr 2007 15:59:26 -0000
I'm trying to pass variables between windows, however I cannot seem to be able
to create new constructors. For example:
class window_User : public window_User_glade
{
public:
window_User(string);
private:
void on_cut1_activate();
void on_copy1_activate();
void on_paste1_activate();
void on_delete1_activate();
void on_about2_activate();
void on_calendar5_day_selected_double_click();
void on_calendar5_next_month();
void on_calendar5_prev_month();
bool on_button_user_fetchcal_button_press_event(GdkEventButton *ev);
bool on_button_user_updatecal_button_release_event(GdkEventButton
*ev);
};
This gives me the following errors during compilation:
window_Login.o: In function `window_Login::on_button_login_login_pressed()':
/home/darkside/new/src/window_Login.cc:79: undefined reference to
`window_User::window_User(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
collect2: ld returned 1 exit status
make: *** [teamproject] Error 1
In window_Login class, I called:
window_User *window_User = new class window_User(legituser);
where legituser is a string.
Help is greatly appreciated, thank you.
Serdar Benderli
Lafayette College '09
ECE & Econ/Business
"Encumbered forever by desire and ambition,
There's a hunger still unsatisfied."
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]