« first day (829 days earlier)      last day (4345 days later) » 

05:00
What's not the point of it?
I just tried to build something that would compile on MinGW but not on VS2012 and it didn't
You've lost me.
see
:c What failed?
05:01
user defined literal
Shooow me.
It's just my BigInteger code
Oh. I don't know how to make a user defined literal.
Um, let's see...
What's the syntax
for a user-defined lieral?
05:03
? I just showed you
operator"" _identifier(type)
Oooh.
Huh. That's weird...
Time to figure out what's gone wrong.
here's an example: print every stack trace for every call to closehandle process-wide to stdout. Process is notepad in example:

`c:\debuggers\amd64\cdb.exe -G -c ".symfix;.reload;bu kernel32!closehandle \"k;g\";g" notepad`
Hm.
FOr me, it's not complaining about literals.
It's complaining about to_string
And fibonacci
lemme see
Do you have MinGW\include and MinGW\lib and MinGW\libexec on the appropriate paths?
If not, you could be building with Visual Studio include files.
And that'd just be a shame.
05:13
gcc would massively fail at the first wild declspec though, right? if you feed msvc headers to gcc I mean
@doug65536 Not for templates. Templates wouldn't have __declspec. Most of the STL is templates. Therefore, no __declspec
man.. why the hell did it remove MinGW from my directory.
A simple mind boggling problem ... why this code is not working ???? http://jsfiddle.net/ipsjolly/7vrcW/
:3c
Get owned.
Does this look like a JavaScript room
where do I put libexec
05:14
Reference directories, maybe?
you mean standard library. the stl is an old library from cgi right?
Can you make it stop throwing the exception
STL, stdlib, all the same thing
@Rapptz Sorry. Take the um, binaries from /Release
They have no problems in them
I forgot to rename the recursive calls
;_;
:3c
That doesn't explain std::to_string though
05:17
Did you forget
22
A: to_string is not a member of std, says so g++

RapptzThis is a known bug under MinGW. Relevant Bugzilla. In the comments section you can get a patch to make it work with MinGW.

Ah.
Welp, that explains why my code isn't working.
But see? This is why you need a Platform dropdown.
You need to be able to just hit the dropdown at the top of VS and select "MinGW"
And then have it put all the right includes and other things where they need to be.
Damn. Check out the close/reopen war on the sock question:
A lot of people don't like it. :(
this thing is retarded
;_;
I can't press F5 to run the exe
booo
05:20
pump out every stack trace for all malloc and free calls:

c:\debuggers\amd64\cdb.exe -G -c ".symfix;.reload;bu msvcrt!malloc \"k;g\";bu msvcrt!free \"k;g\";g" notepad
F5 is debug.
How do you expect
to fucking debug a MinGW executable
in VS?
raw assembly and import symbols. work back from the known calls and reverse engineer which functionn is which
@ThePhD -g
@doug65536 You write it.
05:23
._.
well F5 does open an EXE
You guys write the DWARF2 to PDB converter then.
albeit it's the old code
which is weird
because I have nothing in debug folder
Lol
Ghost executable.
actually, almost non-joke, a link map could act as crap symbols if you really had to debug a mingw exe in msvc
05:28
Where does the executable go...?
because I don't have one
Uh
Mine ends up in Debug/
This folder is empty.
meh w/e idc
pretty cool thing you have I guess
Dude it matters. :c
If it doesn't work for you it's not worth it.
My life isn't worth it.
lol
what is it you guys are working on?
05:31
He's trying to make g++ work in VS2012
Succeeded in.
Minus the whole
thephd made a tool that wraps gcc so it works well in msvc? is that correct?
No executable thing
@doug65536 Yes.
05:31
cool!
It works in Visual Studio and can compile a whole project using MSBuild.
Compilation is suceeding, right?
Yes
Is ld.exe succeeding?
By the looks of it, ti should be.
05:33
I closed the thing but I assume so because I got no errors
... Closed the things? o_O;
VS2012
Oh. Um.
Yeah it should still be there.
Look at the uh
link-ld.read and link.read logs
They will contain, word-for-word, the command input and outputs
link-ld.read is empty
link.read has directories.
Does link.write
have the executable name?
05:35
Nope
Well, so we know that the problem is in link.exe then.
Shall we do more
UNhandled exceptions? :3c
tbh too lazy to open VS2012 again ;_;
I need to find out that order thing. >.>
@ThePhD theoretically you can feed it a whole solution with a couple of projects and might work?
it's been bugging me for like, 3 weeks.
@doug65536 Not theoretically. It works like that.
@Rapptz Order?
05:37
with appropriate maybe ifdef in there
nice
@ThePhD I mentioned it yesterday
In DA ROOM?
mhm
If so, it might've flown completely over my aching head.
is any one can help me on this?
05:38
so the idea is to get freebie VC and ignore the cl.exe compiler and make it use the wrapper thereby getting msvc + good intellisense + gcc?
OOOH
Now I understand what you mean
Heeerrppppaaderrpppaa.
it won't link vstudio libs though right? it redirects appropriately?
@ThePhD is it downloadable?
1 message moved to bin
It blocks all directories that have vc/ and windows kits in them, so that they won't get added to the MinGW command line and fuck up the build with
windows_um.h and other windows-specific definitions.
All .lib files are changed to .a to be MinGW compatible,
all .dll files are changed to be .so
and so on, so forth.
All .obj extensions are made to be .o
It's not downloadable right now. I do not have it up in a Repo anywhere.
I will probably put it in a Public Bitbucket Repository soon.
It does not translate all LINK.EXE and CL.EXE commands perfectly, though.
Link.EXE is the hardest, because it has many options (manifest, UAC) which have no or little equivalent in GNU's ld
Thankfully they do have nxcompat and aslr
someone needs to make an anti-cygwin, something that lets you reasonably take a bunch of windows code and throw it at linux without using full wine.
05:45
Meh.
I guess that's wine
Okay.
I figured out how to create my own Platform Toolset
But I'd have to learn the entire MSBuild language to make this jive, so.
For now, I'll just do some replacements and let it work that way.
The last thing I need to do is converting DWARF and other such output to PDB
lol google actually gave me a good link from "how do you echo in cdb breakpoint on command line"
imagine how many pages have each of those individual things lol
wow you should see how many times in a row it opens \\.\MountPointManager when you simply do file/open in notepad
now its digging around in thumbnails
loading up some shell extensions
reading the desktop directory of course
walking around the user profile tree
opening lots of desktop.ini
06:03
All that information.
pounding through some more desktop.ini
suddenly we need networkexplorer.dll
repeatedly enumerating a bunch of user profile directories
I added bus-master dma to bochs emulator. in my initial testing I discovered that win98 polled for "auto-insert", about 16 times a second. It actually sits there and endlessly does IDE transactions with the cdrom drive
likely: the cdrom driver guy hooked right into the context switch and pounded it every timer IRQ.
Does g++
make a separate file for the debugging symbols / information?
its all in the o file isnt it?
I don't know.
my not entirely sure answer is: its in the o file
06:15
Okay.
-gsplit-dwarf
Separate as much dwarf debugging information as possible into a separate output file with the extension .dwo. This option allows the build system to avoid linking files with debug information. To be useful, this option requires a debugger capable of reading .dwo files.
etc
Yes, I see that.
might have been handy
dwarf isnt default though right
I guess since the answer is "it depends" they dont say there
the debugging information is in the o file
pretty sure..
I think I see what they're saying. theyre saying, if you dont specify a symbol format, it will use one that is perfect for your gdb. otherwise you probably dont get as good debug info.
most likely default:

-gxcoff+
Produce debugging information in XCOFF format (if that is supported), using GNU extensions understood only by the GNU debugger (GDB).
@ThePhD is that tool downloadable?
06:27
It's also in the .exe apparently.
In either case...
I've used cv2pdb to create a .PDB
they are in sections though I believe, so theoretically binutils could extract and insert symbols
Maybe I can debug with it, though I don't think the name or size of this .pdb is correct.
oh nice
I know tons about PE files
Roflmao
I made a tool that uses a custom linker script to build a gcc coff, which was then post-processed into a win32 executable (fixups for imports exports)
06:30
Fucking
64 KB versus 306 KB
Definitely not a proper .PDB
I used stabs debug info output as a sideband to get information from import library libs (build from dll files like implib) to carry the import/export information into the final executable
the end stage tool took that debug info and built import/export tables and linked in the resources. still think Im faking knowing about PE files?
Uh.
Whatever you say?
In either case, The executable seems like it won't even run.
I'm not sure why.
Haha, holy shit.
My MinGW can't build anything.
Ah well, it was a nice try.
Back to using real tools.
06:47
real tools
cl.exe
@ThePhD these days, running a linux instance inside virtualbox is a much easier way to use those tools (unless there is a special reason you need the pain that is MinGW)
yes linux mint inside virtualbox is my favorite
with whatever the "lightweight" desktop is
runs like lightning
I've been happy with lubuntu - though crunchbang is looking better w/every release
I've snapshotted a hard drive from a live, 2 year old windows, using disk2vhd and successfully transplanted it into a virtualbox VM
so it was that system running itself in the vm
well, a forked dupe. u know what I mean
I also copied the insane sized vhd across the LAN to my computer and booted it up
I've been meaning to linux cd boot my main machine and scrub the hell out of my hd with badblocks
it coerces the HD to relocate fading sectors before its too late
07:25
@doug65536 I still have a ~10 year old image of phys2virtualized win2k that I can boot, in my backups
@doug65536 xfce IYAM
windows 7 can boot directly (using the boot menu) from a vhd file on the hard drive
you can bcdedit it right in so there is no boot menu, or you can have dual boot - real drive vs vhd drive
and virtualize your entire machine
well not virtualize but do the inverse I guess
@Rapptz the contradiction
yeah
basically equiv to hard drive swap or having unlimited boot drives from one drive
@doug65536 it's still virtualization! Virtualization is about location transparancy. Indeed, whether it runs on physical (host) or guest shouldn't make a difference: virtual
yeah but I meant taking your real entire machine and booting it from the vhd on your main drive, vs just booting your main drive
07:29
@doug65536 I had the same with raw disk access for years. Also that backup used vmx because VirtualBox didn't exist and VirtualPC was still Connectix and windows-only
@doug65536 That's also virtualization: a virtual block device to boot from
yes, it's nice that you can finally have multiple drives on one drive if you need to, without being forced to hard-wire the allocations with partitions
@doug65536 cough. lvm2? dynamic disks? even iscsi?
It is very nice that they let you mount (finally) vhds in win 7. giving me a boot menu boot off the vhd is mega icing on the cake for a desktop OS.
I think I can simply boot off iSCSI off my NAS. That'd be the best way to launch that backup VM. Anyways,, since I'm linux-only for about those 10 years, I'll just chroot in whatever the previous backup is and run thing from there
@doug65536 Agreed. I think Win8 has hyperV builtin as well.
I made a tool that could remotely (through authenticated WMI) copy the vhd over and reconfigure the boot menu to boot off of it and reboot the machine. lol
no magic. documentation is there if you can decipher the wmi for the bcd (boot config database)
07:36
@doug65536 Nice. Allthough for server management I'd say that PXE is a better technology, if that's the application
Decyphering anything about WMI, ADS etc. is a pain. I usually look for the samples
yeah if you don't intimately know bcdedit, you will be utterly baffled by what you get from wmi for the boot config db:)
user142019
My CPU is 16 degrees centigrade. :L
lucky cpu
@Zoidberg mobile?
someones plugged up 72°C CPU will eventually draw that on someones screen
user1182183
07:42
well mine was outside -13* C
@doug65536 I once intimately knew... Not for long though, because it was soon easy to boot Vista/7 from grub
user1182183
then I got to the inside and it was asotnishingly fast going up to 79
at work I messed up someones bcd :| took me about half an hour to re-set it up to boot from main hd :)
well, another test box.. thats why creds worked
user1182183
@doug65536 if you have hirens boot cd ready on a usb stick it's 5 minutes :P
07:44
@bamboon are you crazy? whats wrong with that? have to be pro expert to post?
Have to (re)search before you post. But I'm not voting either, I think this is ok
@doug65536 Maybe, just maybe, you should not start off with "are you crazy". At least, not until you know the regulars in this lounge at least as intimately as you know BCD.
its an expression. why take it literally to turn it into something else
You must be new here :)
he can wield his wrath on me if that expression is really that bad
It's not actually something else. It's communication. You don't get to decide how others perceive what you say
07:48
what will happen? they wont let me try to help people if I can on SO?
user142019
@sehe MacBook
@doug65536 We like to keep an open atmosphere here. Yes, these things (and a lot worse) pass, but there is always a basis of respect.
@doug65536 Calm down boy. It seems to me you're overreacting a bit. I don't know why. I'd say may suggestion was quite a bit more balanced than what you said, and yet you seem to have a problem with it.
@doug65536 TL;DR I don't know you, and we get strange fellows once in a while. Just giving you a nudge,.
Welcome to the lounge!
We also have a dog, a cat and a lion.
@Zoidberg Ah. It runs on air, right
@StackedCrooked Some primates will resent that you left them out
Ah, yes, there's an ape as well.
user142019
07:53
@sehe lol would be cool.
Dat pun
Air is not a source of energy though.
Unless you go Einstein.
@doug65536 it's a dupe
One of the pains of never going on facebook is that, when you do you always get to find out how slow their password reset facility is
@bamboon oh. sorry then
07:54
@doug65536 no prob, my fault to not make that clear enough
yeah I jumped to a conclusion myself
@bamboon You're obviously right. I just don't moderate that intensely (anymore). As long as things aren't hindering quality, a bit of duplication is ok by me. It's not like SO search is supereffective. I only vote to close if there is no answer yet or the answers are unsatisfactory.
Mmm. I might just look over at the dupe you suggested
yeah that post is a guy that seems like he thinks it should work. I guess he's carrying assumptions over from java.
He sort of mentions that
@sehe me, too. It's just that my answer is the accepted one over there ;P
07:57
... :)
if all you knew were java, you might view it as thats how you do things... before you learn a list of languages
If all you know is OOP your gonna say "oops" a lot.
^ lol
@doug65536 that's "lack of resource" from your description :)
Ell
Ell
agh why did i fall asleep?
08:12
Because you forgot to cross the road?
Ell
Ell
08:22
ahh schooltime must go, have a nice day :)
time for a morning boarding action
user142019
Java y u memory leak.
user142019
I'm happy this terrible Greenfoot shit will be over at the end of this week.
user142019
@sehe lol
oh fucking quality, this shit hole can't even log what shit is doing with breaking it
oh man, I Was scared just then, I thought server had died, I was just being to impatient for the ssh to finish connecting
08:29
"schooltime must go"
hohum
user142019
Exceptions in Perl are awesome.
user142019
my $repo;
eval { $repo = Git::Raw::Repository->open('./.git'); };
die $@ if $@;
eval? what are you playing at
and you should use ... or die
reads better
user142019
Or, you know
user142019
just my $repo = Git::Raw::Repository->open('./.git');.
08:35
my $repo = Git::Raw::Repository->open('./.git') or die "Could not open that git";
presuming it returns false if it fails
and you want to quite if the repo can't be opened
or die won't catch an exception though
not that catching exceptions is good or anything
user142019
@thecoshman doesn't seem to work.
oh, that open will through an exception?
user142019
Git::Raw::Repository->open('./.git') dies if it fails.
ah, well, I wasn't expecting that :P
user142019
08:39
my $repo = eval { Git::Raw::Repository->open('.git'); };
die 'Not a Git repository.' if $@;
user142019
:P
There are Perl modules that make the syntax look C++ like.
user142019
Oh yeah you really want C++ syntax. C++ syntax is wonderful.
ah right, you are using the eval to trap the exception
08:41
TryCatch is one of the modules.
still, throwing an exception in the case seems a bit excessive to me
is it really that unexpected that the repo does not exist?
particularly in perl, where or die is ubiquitous
user142019
Oh wait.
user142019
08:42
I want to output to stderr and then exit 1.
user142019
:P
user142019
I'm confusing Perl's die with PHP's die. T_T
perhaps make your own 'die' function
'kill_me'
lol
@CatPlusPlus shut up Navi
reminds me of that ridiculous brain garbage that some of those kids shows pump out
user142019
@thecoshman php_die :P
08:53
@Zoidberg die_php
user142019
\o/
wait... do you... like php?
user142019
No, of course not, you fool.
user142019
PHP must die.
then why do you want php style 'die'
08:57
die()
yes... that is a function...
grab your self a cookie

« first day (829 days earlier)      last day (4345 days later) »