GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Apr-2005, 10:56
maveganzones's Avatar
maveganzones maveganzones is offline
New Member
 
Join Date: Mar 2005
Location: San Sebastian (Spain)
Posts: 12
maveganzones is on a distinguished road

friday afternoon trasforms me in an absolutly idiot


I cant get File_Text_Display to display an integer;

This code dosnt work:

CPP / C++ / C Code:
int n = 3;
File_Text_Display td = new File_Text_Display(...);
Fl_text_Buffer buffer = new Fl_Text_Buffer();
td -> buffer(buffer);
buffer -> text("The number is: ");
buffer -> append(n);
  #2  
Old 11-Apr-2005, 11:15
maveganzones's Avatar
maveganzones maveganzones is offline
New Member
 
Join Date: Mar 2005
Location: San Sebastian (Spain)
Posts: 12
maveganzones is on a distinguished road
It seems that the append method of the Fl_Text_Buffer class can only work with char*.

I make a utility method named int2char:

CPP / C++ / C Code:
const char* int2char(const int& number) {
   ostringstream oss;
   oss << number;
   return oss.str().c_str();
}

I use this method to transform 'n' into a const char* 'n_char', and i pass it to the append method. It works, it compiles fine, BUT MY MVC6++ GIVES A BUILD ERROR:

Linking...
libcpd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol _errno
libcpd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol _errno
libcpd.lib(locale.obj) : error LNK2001: unresolved external symbol _errno
libcpd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol _errno
libcpd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _errno
libcpd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _errno
libcpd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __pctype
libcpd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __pctype
libcpd.lib(_toupper.obj) : error LNK2001: unresolved external symbol __pctype
libcpd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReport
libcpd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpd.lib(wlocale.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___lc_collate_cp
Debug/EMTest.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

Can anyone tell me what is wrong?
 
 

Recent GIDBlogWriting a book by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:52.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.