Code::Blocks

User forums => Help => Topic started by: clinthof on November 08, 2019, 08:02:23 pm

Title: CodeBlocks Troubleshooting: Reading file line by line
Post by: clinthof on November 08, 2019, 08:02:23 pm
Hey all,
I have written a C program in codeblocks to read a specified file line by line.  However, this is the output I get:

/private/var/folders/01/93nfj2q543q6ctr7hjs04vfw0000gn/T/AppTranslocation/7CB58FA2-56DE-4E40-9080-8DB0187CF55A/d/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/MYNAME/Desktop/readLbyL/bin/Debug/readLbyL
myCP:~ MYNAME$ /private/var/folders/01/93nfj2q543q6ctr7hjs04vfw0000gn/T/AppTranslocation/7CB58FA2-56DE-4E40-9080-8DB0187CF55A/d/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/MYNAME/Desktop/readLbyL/bin/Debug/readLbyL

What is causing this? Thank you!
Title: Re: CodeBlocks Troubleshooting: Reading file line by line
Post by: hidefromkgb on November 08, 2019, 09:22:13 pm
Well… This is not a programming forum.
The more appropriate place to ask your question is e.g. here (https://stackoverflow.com/questions/tagged/c).
Nevertheless, please show us the code, for I`m sure your problem is easy to solve.
Title: Re: CodeBlocks Troubleshooting: Reading file line by line
Post by: stahta01 on November 09, 2019, 02:15:31 am
My wild guess is you need an terminal program installed or you need to tell Code::Blocks what terminal program to use.

Edit: Look to see what terminal it is trying to use under
Setting -> Eviroment
General Setting
Check the value of "Terminal to launch console programs"

Tim S.