On 02/15/2012 06:36 PM, John Shaver wrote:
> On Wed, Feb 15, 2012 at 5:48 PM, Michael Torrie wrote:
>> Just have to say that is awesome that you are getting experience in
>> cross-compiling.
> Well, I didn't want to buy Windows and I had to turn in my homework somehow.
> :)
>
> I have an issue wi
On Wed, Feb 15, 2012 at 7:00 PM, Michael Torrie wrote:
> On 02/15/2012 06:36 PM, John Shaver wrote:
>> Really, these programs are so tiny and only take like 4 seconds to
>> compile. Why they need an executable at all when they have the source
>> code is beyond me.
>
> Hmm, that's exploitable in s
On 02/15/2012 06:36 PM, John Shaver wrote:
> Really, these programs are so tiny and only take like 4 seconds to
> compile. Why they need an executable at all when they have the source
> code is beyond me.
Hmm, that's exploitable in so many ways... :)
/*
PLUG: http://plug.org, #utah on irc.freeno
On Wed, Feb 15, 2012 at 5:48 PM, Michael Torrie wrote:
> Just have to say that is awesome that you are getting experience in
> cross-compiling.
Well, I didn't want to buy Windows and I had to turn in my homework somehow. :)
I have an issue with the school requiring you to turn in an windows
exe
On 02/15/2012 02:51 PM, John Shaver wrote:
> I write all my homework assignments in Ubuntu
> and then cross compile them for windows since we're required to turn
> in a windows executable.
Just have to say that is awesome that you are getting experience in
cross-compiling. So glad for mingw32. T
On Wed, Feb 15, 2012 at 3:50 PM, Byron Clark wrote:
>
> Just open the file in binary mode and it should behave the same on
> Windows and Linux.
That makes sense. Kind of like FTP in Binary or ASCII mode. I never
used binary mode in C++ before. I always assumed it was for editing
binary files
On 2/15/12 3:50 PM, Byron Clark wrote:
> On 02/15/12 at 03:46pm, John Shaver wrote:
>> It kind of makes file processing strange if windows compilers treat
>> \r\n different than linux based compilers... They should both just
>> treat them as what they are. Otherwise, writing cross platform code
>
On 02/15/12 at 03:46pm, John Shaver wrote:
> It kind of makes file processing strange if windows compilers treat
> \r\n different than linux based compilers... They should both just
> treat them as what they are. Otherwise, writing cross platform code
> is more difficult.
Just open the file in b
On Wed, Feb 15, 2012 at 3:29 PM, Byron Clark wrote:
> diff -u source.orig/calc.cpp source/calc.cpp
> --- source.orig/calc.cpp 2012-02-14 21:57:33.0 -0700
> +++ source/calc.cpp 2012-02-15 15:28:03.392211261 -0700
> @@ -69,6 +69,10 @@
> assert(parent
On Wed, Feb 15, 2012 at 3:25 PM, Andrew McNabb wrote:
> It looks like you're having a problem with line endings. Your program
> checks for a newline ('\n'), but it doesn't treat carriage return ('\r')
> specially. At some point, the program prints out the carriage return,
> which on Linux causes
On 02/15/12 at 02:54pm, John Shaver wrote:
> On Wed, Feb 15, 2012 at 2:51 PM, John Shaver wrote:
> > Here is a link where you can download the source code.
>
> Forgot the link:
>
> http://jshaver.net/test/source.zip
Looks like tests.txt uses DOS line endings. When you run on Windows
"\r\n" is b
On Wed, Feb 15, 2012 at 02:51:44PM -0700, John Shaver wrote:
>
> Suddenly, in my program output, the first operand of each converted
> postfix statement was replaces with a space and I can't figure out
> why. The weird thing though... The windows executable work just
> fine??
It looks like you'
On Wed, Feb 15, 2012 at 3:13 PM, S. Dale Morrey wrote:
> I've seen stuff like this before.
> Your linux compiler is probably compiling with -02 or higher
> optimizations. Windows is probably lower than that (assuming you are
> using mingw).
>
> Take a look and see if that isn't the case.
I'm not
I've seen stuff like this before.
Your linux compiler is probably compiling with -02 or higher
optimizations. Windows is probably lower than that (assuming you are
using mingw).
Take a look and see if that isn't the case.
On Wed, Feb 15, 2012 at 2:54 PM, John Shaver wrote:
> On Wed, Feb 15, 201
On Wed, Feb 15, 2012 at 2:51 PM, John Shaver wrote:
> Here is a link where you can download the source code.
Forgot the link:
http://jshaver.net/test/source.zip
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/
I'm taking a basic C++ class for school and while it's normally pretty
easy, I got stumped by a weird problem last night.
The assignment was to write a program to convert infix expressions to
postfix expressions. I write all my homework assignments in Ubuntu
and then cross compile them for window
16 matches
Mail list logo