Click here to Skip to main content
15,916,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dont know what i did wrong please help Pin
DougW4814-Sep-03 0:04
DougW4814-Sep-03 0:04 
GeneralResizing Bitmaps without clipping Pin
Hamid Mushtaq13-Sep-03 16:08
Hamid Mushtaq13-Sep-03 16:08 
GeneralRe: Resizing Bitmaps without clipping Pin
JWood13-Sep-03 16:11
JWood13-Sep-03 16:11 
GeneralReading Registry Pin
K7magi13-Sep-03 15:59
K7magi13-Sep-03 15:59 
GeneralRe: Reading Registry Pin
Michael Dunn13-Sep-03 17:31
sitebuilderMichael Dunn13-Sep-03 17:31 
Generalquestion about api hook Pin
Jay Wang13-Sep-03 15:07
Jay Wang13-Sep-03 15:07 
GeneralCouple of questions about toolbars Pin
Xakep13-Sep-03 10:48
Xakep13-Sep-03 10:48 
Generalvoid functions in g++ Pin
keegan13-Sep-03 10:06
keegan13-Sep-03 10:06 
Ok, im trying to work with g++ here so i can get used to it. I've written a simple code that uses classes and whatnot. I'm setting variables in the classes using functions like

void myclass::setvariable(int my_variable)
{
     Variable = my_variable;
}


Where my_variable is passed into the function and a private variable, Variable, is set equal to it.

This works all fine and dandy in VS.net, however, when compiling in g++, im getting errors. like

Undefined first referenced
symbol in file

This only happens with my g++ compiler, not in VS.net. Any suggestions? Or does g++ not like void functions?

*.*
cin >> knowledge;
GeneralRe: void functions in g++ Pin
Johnny ²13-Sep-03 10:42
Johnny ²13-Sep-03 10:42 
GeneralRe: void functions in g++ Pin
keegan13-Sep-03 11:14
keegan13-Sep-03 11:14 
GeneralRe: void functions in g++ Pin
Nick Parker13-Sep-03 11:56
protectorNick Parker13-Sep-03 11:56 
GeneralRe: void functions in g++ Pin
ZoogieZork13-Sep-03 11:57
ZoogieZork13-Sep-03 11:57 
GeneralRe: void functions in g++ Pin
keegan13-Sep-03 12:11
keegan13-Sep-03 12:11 
GeneralRe: void functions in g++ Pin
ZoogieZork13-Sep-03 12:32
ZoogieZork13-Sep-03 12:32 
GeneralRe: void functions in g++ Pin
keegan13-Sep-03 12:53
keegan13-Sep-03 12:53 
GeneralOpen & Read & Write in USB port Pin
asd175313-Sep-03 8:23
asd175313-Sep-03 8:23 
GeneralRe: Open & Read & Write in USB port Pin
Felix Gartsman13-Sep-03 8:33
Felix Gartsman13-Sep-03 8:33 
GeneralRe: Open & Read & Write in USB port Pin
asd175313-Sep-03 8:38
asd175313-Sep-03 8:38 
GeneralRe: Open & Read & Write in USB port Pin
Felix Gartsman13-Sep-03 23:16
Felix Gartsman13-Sep-03 23:16 
GeneralMFC-a windows paint example, how do i do the text option Pin
lxxrya00113-Sep-03 8:22
lxxrya00113-Sep-03 8:22 
GeneralRe: MFC-a windows paint example, how do i do the text option Pin
Steve Hopkins13-Sep-03 9:41
Steve Hopkins13-Sep-03 9:41 
GeneralAppend one string at begin of another Pin
skaanji13-Sep-03 7:34
skaanji13-Sep-03 7:34 
GeneralRe: Append one string at begin of another Pin
Scozturk13-Sep-03 8:09
professionalScozturk13-Sep-03 8:09 
GeneralRe: Append one string at begin of another Pin
skaanji13-Sep-03 8:34
skaanji13-Sep-03 8:34 
GeneralRe: Append one string at begin of another Pin
JohnJ13-Sep-03 9:32
JohnJ13-Sep-03 9:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.