User forums > Using Code::Blocks
strlen() fails when the code is compiled with mingw gcc
Jenna:
How do you set argv[1] ?
Are you aware of "Project -> Set programs arguments" ?
If you set the argument for one target, than switch to the secon target and set it here also the first one will not be saved.
Actually it seems only the target which is active when pressing the OK-button is saved correctly (at least for the programs arguments).
I will look into it this evening, if I do not forget it.
sylwa:
Dear Jens,
--- Quote from: jens on March 14, 2013, 10:28:41 am ---How do you set argv[1] ?
Are you aware of "Project -> Set programs arguments" ?
--- End quote ---
yes
--- Quote from: jens on March 14, 2013, 10:28:41 am ---If you set the argument for one target, than switch to the secon target and set it here also the first one will not be saved.
Actually it seems only the target which is active when pressing the OK-button is saved correctly (at least for the programs arguments).
--- End quote ---
that's more clear now.
Concerning my seg fault, I cannot reproduce it. I'am very misled.
Sorry to have disturbed you for a false alarm.
Cheers!
Navigation
[0] Message Index
[*] Previous page
Go to full version