Hi,
after some study of the manual I came up with this :
It's the first makefile I've ever made.
Got a couple of questions:
1. According to the manual mingw32-make looks for a file called Makefile
I called my file Makefile.txt
When I call mingw32-make, it says that no makefile file but when I call
mingw32-make -f Makefile.txt
it finds it.
Wondering what I need to change Makefile.txt to, to get it to find it autometically.
The other question is about getting the object files linked to libraries.
I need to link to these files.
C:\MinGW\lib\liballegro.dll.a;
C:\MinGW\lib\liballegro_ttf.dll.a;
C:\MinGW\lib\liballegro_primitives.dll.a;
C:\MinGW\lib\liballegro_font.dll.a
Can anyone help me with that ?
Wondering what I need to change Makefile.txt to, to get it to find it automatically.
Either Makefile or makefile will do (no extension).
cheers Arthur.
How do I save it with no extension ?
Windows automatically puts the .txt extension on it? Use quotes
Save As -> "makefile"
sweet
EDIT : that's something we say in UK. Could have just said Thanks.
Anyway, got the libraries linked now.
Changed makefile to :
How do I save it with no extension ?
Don't use Notepad.
IIRC, Notepad can also save without an extention if you select "All files" first.
IIRC, Notepad can also save without an extention if you select "All files" first.
Nope, even then it still adds a .txt
Obviously Windows knows best.
IIRC, you can just add a dot at the end of the file name to disable the automatic extensions.
And don't you just love it when you want to edit it again, you can't just double-click it without an extension without getting the "Open with" dialog. Maybe it's just best to leave it as makefile.txt.
IIRC If you also tell windows to display extensions for all file types notepad should allow you to enter the full filename after selecting "All Files".
Just type in "Makefile." (with the quotes) like torhu said. Easy as that.
You all love to hate on Windows, but in all reality, how often do most people need to save a file without an extension? It doesn't make sense not to add the default extension automatically - very few people actually want to know and type the correct extension whenever they save.
I suppose you could always get the make source and change it to accept makefile.txt as the default, since you can't get the Windows sources. Maybe one of those third party shells would know what to do with no extension though.
You all love to hate on Windows, but in all reality, how often do most people need to save a file without an extension? It doesn't make sense not to add the default extension automatically - very few people actually want to know and type the correct extension whenever they save.
I don't even add an extension to text files. Why would I? That should be the default type assumed by the system. And as a general rule, file extensions shouldn't be trusted anyway. If I'm not sure what type of file I'm dealing with (very rare) then I just ask `file`. Windows can't even deal with files without extensions (it asks you every goddamn time to search through two or three dialogs to find an application to open it with).
I see that even though Russia had the source code to Windows 7 to examine for months, they've decided to go with Linux after all.
How would the bulk of the code for Windows 7 compare with a big triple A game ?
eg Call of Duty Black ops
You all love to hate on Windows, but in all reality, how often do most people need to save a file without an extension? It doesn't make sense not to add the default extension automatically - very few people actually want to know and type the correct extension whenever they save.
The big problem for me is it adding a .txt extension even when I already GAVE the file an extension. Stupid windows.
It's also a huge security hole, i.e. "college_girls_gone_wild.jpg.exe" just shows up as "college_girls_gone_wild.jpg". Of course in Linux even a jpg extension could execute if it had the right permissions, but the user privileges had some thought put into them.
Of course in Linux even a jpg extension could execute if it had the right permissions, but the user privileges had some thought put into them.
Also, from the command line (where I imagine most Linux users spend most of their time; I know I certainly do) you have to explicitly say what you want to happen (which is generally effortless). Even from the GUI, if a file is executable, Gnome always asks me: do I want to "display" this file (i.e., open it) or do I want to execute it? Of course, I almost never let any desktop environment implicitly carry out actions anyway. I generally open the context menu and select what I want to happen.
Since it came down to text editors, I would like to add my 2 cents with notepad++, a text editor used for various programming languages.. Very easy to use, and does what is required to be done.
The big problem for me is it adding a .txt extension even when I already GAVE the file an extension. Stupid windows.
Use quotes around the filename. That's always been step one to getting the extension you want. Or, use a better editor than notepad.
Or, use a better editor than notepad.
I choose to use a better OS
The big mistake here is using notepad in the first place. Even being saddled with Windows is no excuse for not using Vim.
I choose to use a better OS
Oh yes, and instead of listening to a better radio station when I don't like what's playing, I buy a brand new car.
A better analogy would be a free luxury car instead of an overpriced Yugo.
Except that the analogy was applying to the absurd suggestion of changing operating systems to get a better text editor.
But Yugos didn't have a "scan" or "seek" button on their radios! They probably couldn't pull in distant stations very well either.
Oh yes, and instead of listening to a better radio station when I don't like what's playing, I buy a brand new car.
No, instead of listening to a crappy radio station, I listen to a good one.
Except that the analogy was applying to the absurd suggestion of changing operating systems to get a better text editor.
I think the spirit was more along the lines of changing operating systems to get better development tools.
Also, we're talking about makefiles here, a concept that was invented on Unix and still works best when used in a Unix-like environment. Suggesting to switch to a Unix-like platform to get the most out of them does make some sense, although it's probably still overkill.
No, instead of listening to a crappy radio station, I listen to a good one.
Instead of listening to a crappy radio station, I listen to CDs. Only with operating systems, the CDs are free and the radio isn't.
Yeah, and that spirit is just like suggesting buying a new car to get a better radio.
Switch to a new OS to use a shitty build system anyway... that makes a lot of sense.
Let's see what the money-is-no-object scientists type use, shall we?
{"name":"800px-Operating_systems_used_on_top_500_supercomputers.svg.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/c\/7cd696c8987b0fd04795e7b84a034c52.png","w":800,"h":560,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/c\/7cd696c8987b0fd04795e7b84a034c52"}
And what is that supposed to prove?
Isn't it obvious on the face of it?
Last time I had linux installed it was Mandriva and I got a message due to trying to run something without permission.
The message said the incident was going to be reported. That's like being spotted stealing something trivial from work and getting grassed up for it.
I thought linux was supposed to be cool. There's a world of difference between being an amiable nerdy tech-enthusiast and complete twat who's life is so devoid of pleasure that he gets a kick out of writing such strings into the kernal of an OS.
I got a message due to trying to run something without permission.
Yes, this is preferable since it doesn't require user intervention.
Last time I had linux installed it was Mandriva and I got a message due to trying to run something without permission.
Must have gotten your password wrong. If you run and app with sudo, and get the password wrong enough times, it'll give you that message and exit.
It actually sends an email to "root", its not about people getting jollies writing "such strings", its about security, and knowing that you can tell when someone is trying naughty things with your box.
Also, its not written into the kernel
Isn't it obvious on the face of it?
No not really. Just because scientists are using more and more Linux means that everyone else should as well?
Isn't it obvious on the face of it?
It's pseudo-proof. Your arguments is that most scientists use Linux because it is better even when money is meaningless. Your graph shows, if anything, that most scientists use Linux, but it does not provide reasons.
My guess would be that Linux is the OS of choice for entirely different reasons - the most crucial applications for computers, in the scientific world, involve really large computers - clusters where you can reserve a few hundred CPUs with a few dozen terabytes of RAM for a few days straight to perform your calculation. For such computers, a highly modular OS, fully configurable and every part tweakable to the max, to the point that parts of the OS kernel can be rewritten to suit particular needs, is the best choice, and a closed-source OS simply cannot satisfy this. User-friendlyness is relatively unimportant: When you have three days to do your calculation, spending an hour or two on learning command line basics is relatively meaningless.
So the most mission-critical systems run Linux - everything else follows naturally, just like a company that uses SQL Server for their databases is likely to run Windows on everything.
Anyway, sorry about my stupid comment. I'd like to use linux but noone really cares if I use linux or Windows (correct me if I'm wrong) and I find Windows easy. If I ever finish my game I'll be able to compile it for linux seeing as allegro is cross-platform.
No one bothered to tell you to open the file from within Code::Blocks. Code Blocks will let you select the line ending type as well as correctly read text files with any line endings. If you create a new file in Code Blocks you'll have to select 'all files' in the save type under the save as dialog and put quotes around the file name, but after that it will save normally.
Nice to see you're back Edgar.
I use Notepad++ anyway, but thanks.
Nice to see you're back Edgar.
Cheers, thanks. Good to see some familiar faces.
I use Notepad++ anyway, but thanks.
Does Notepad++ have syntax highlighting? What about project files or compiler and linker options? You should really try Code Blocks. Thanks to this thread I checked their website and version 10.05 came out last May so I downloaded it and I'm going to try it out tomorrow.
Does Notepad++ have syntax highlighting?
Yes.
What about project files...
No.
...or compiler and linker options?
Not really. You should be able to invoke a build file (Makefile, CMake, premake4, scons, etc.) though.