Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: BillModlin on April 13, 2014, 12:16:13 pm

Title: linking with old setargv that does not expand wildcards?
Post by: BillModlin on April 13, 2014, 12:16:13 pm
I recently downloaded the Code::Blocks IDE and set out to write some command line utilities for personal use.

I'm running Windows 7 and coding in regular old C.

I wrote a program to fix line terminators and trim trailing blanks in text files, for example.

I implemented wild-card file searching in the program, then found that it was never executed and wasn't needed, that there is a new Setargv function that expands wildcards to separate argv's automatically.  Doh.  Oh well, it's been over 30 years since I did any real programming and I guess I should expect changes.  This seems convenient for most purposes, and allowed me to delete a few lines from my program.

However, the next thing I want to write needs to accept arguments including asterisks and question marks without having them expanded before I see them.  A little googling suggests that what I need is to link my program with an older less powerful setargv function.   

I have no idea at all how to tell Code::Blocks to do that.  Can someone point me in the right direction?

All this new-fangled IDE stuff is lovely when it does what you want it to, which seems to be the case much of the time.  But it can be bewildering to a fuzzy-headed old timer like me when I want to deviate from the defaults.  As of now, I have only the vaguest of ideas what a "project" really is, or what it means when it talks about "the current view" and suchlike. 

I can't seem to find any linking options.  And if I found them I'm not sure what to set them to.  Help? 



Title: Re: linking with old setargv that does not expand wildcards?
Post by: BlueHazzard on April 13, 2014, 11:03:14 pm
search the wiki. for ex. :http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F
Title: Re: linking with old setargv that does not expand wildcards?
Post by: stahta01 on April 15, 2014, 03:09:44 pm
Code::Blocks User directions http://wiki.codeblocks.org/index.php?title=User_documentation (http://wiki.codeblocks.org/index.php?title=User_documentation)
Code::Blocks FAQs http://wiki.codeblocks.org/index.php?title=FAQ (http://wiki.codeblocks.org/index.php?title=FAQ)
The CB Forum rules http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)

I suggest this site for your NON CB questions http://cboard.cprogramming.com/ (http://cboard.cprogramming.com/)
Note: How to program in C or C++ are NON CB questions.

Tim S.