- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I'm a 17-year old programmer. I first started with programming more than 2 years ago in C#. Later, I changed to Linux and C and I'm today writing software that has to do with lower-level actions (related to assembly or hardware)
- Interests
- Computers, Programming, Guitar, Heavy Metal
- PC Specs
- OS: GNU/Linux with GNOME
27 Posted Topics
Hi! I'm working on a hobby OS. Almost every time I try to link my files I get a 'undefined reference to' error. As I've been trying to compile with different compilers, the errors generated by the linker changes. I have only been using different ports of the GNU compilers. … | |
Re: [QUOTE=anders10;1593592]Thank you for answering, I solved the problem by coding globl puttext, outimage in the intellab file. But now I get another problem. When I try to run the program I get an error message: Segmentatoin fault What is this? //Anders[/QUOTE] The reason your program is SegFaulting is because your … | |
Re: Programs in DOS start from address 0x100, right? You'll need this at the top of your code: [CODE]ORG 0x100[/CODE] | |
Re: [QUOTE=gerard4143;1396362]because your added extern extern int stack_counter; extern snode sroot; This informs the linker that both of these are defined elsewhere.[/QUOTE] Actually no. It's because the variables are initialized outside any function and without any data type specifier (which is why the compiler says "data definition has no type"). | |
![]() | Re: The JWasm assembler is MASM-compatible, available for Linux and free. Available from: [URL="http://www.japheth.de/JWasm.html"]http://www.japheth.de/JWasm.html[/URL] |
Re: The first error could be because of two things. If you're using MASM, it probably has to do with operand sizes (AX is a WORD while Values is a BYTE). In that case, use [U]one[/U] of the following lines to replace you're old lines: [CODE]Values dw ? ; Declare 'Values' … | |
Re: In the code that you show you're comparing the addresses of two pointers, and not the actual contents of them. It's strange that 'strcmp' didn't work for you, since it's supposed to tell you when two strings are equal. One of the mistakes I did when I was new to … | |
Re: If you mean the number of bytes of an int, then the sizeof operator is what you want. [CODE]int size_of_int = sizeof(int);[/CODE] | |
Re: The extern keyword tells the compiler that the symbol (in this case i) is located in an external module. In simple words, in another source file. In another source file, declare the variable i as you normally would declare a global variable. | |
Re: The star says that you will be providing the width as an argument. In this case, the "%*d" evaluates into 5 characters (4 spaces + 1 digit). In case you want to know more about printf format specifier, I've found [URL="http://www.cplusplus.com/reference/clibrary/cstdio/printf/"]this[/URL] to be very good. | |
Re: There's a guide in the NASM Manual: [URL="http://www.nasm.us/doc/nasmdoc1.html#section-1.3.1"]http://www.nasm.us/doc/nasmdoc1.html#section-1.3.1[/URL] | |
Re: After some quick searching I found [URL="http://forum.osdev.org/viewtopic.php?f=1&t=20561"]this[/URL] on the OSDev Forums. If you scroll down on that page, you'll find a bootloader that (according to the author) can boot from a CD. I haven't tested it, but it seems it should work. It's written for the GNU Assembler, and boots … | |
Re: The "system" function in "cstdlib" should work: [CODE]#include <cstdlib> int main() { system("wget -q -E -O index.html http://www.website.com | programfilename"); return 0; } [/CODE] | |
Re: The "Contains" method might be what you're looking for: [CODE]string str = "1234567890"; if (str.Contains("456")) { MessageBox.Show("True!"); } else { MessageBox.Show("False!"); }[/CODE] | |
Re: Wine is not capable of running every single Windows application out there. Have a look in Wine's application database and see if you can find the application you want to run. If you have to do something extra to make it run, that will most likely be listed in the … | |
Re: I think it's because of the C calling convention. Arguments are passed in the order right-to-left (last ++a to string) | |
Re: The error is not in your makefile. It's in the file named "LinkedList.h". | |
Re: It might run in DOSBox ([URL="http://www.dosbox.com/"]http://www.dosbox.com/[/URL]). DOSBox is an MS-DOS Emulator built for running old DOS-games, but according to the site it should also be able to run most DOS applications. | |
Re: The Google Chromium OS is available from [URL="http://www.chromium.org/chromium-os"]http://www.chromium.org/chromium-os[/URL] | |
Re: What exactly is "lid2pstr" returning? Without knowing, I would guess it returns something like a short or char. On 32-bit machines, pointers are (as far as I know) 4 bytes. Short is usually 2 bytes on x86 machines, and char is usually 1 byte. | |
Re: What are you using to build your program? Visual Studio? GCC? | |
Re: Yes, strcat is standard. Although, make sure you have enough space in string1 first. I don't know anything about Python, however I would believe that it's some built in feature. In C++, this is achieved through operator overloading. C does not have these features, and you therefore have to work … | |
Re: [QUOTE=clarkeboy;1307765]How Can I use Clear screen and jump to next line?? like for example. press enter y for yes and n for no to proceed to next line and next screen.[/QUOTE] There's a snippet here at DaniWeb: [URL="http://www.daniweb.com/code/snippet217000.html"]http://www.daniweb.com/code/snippet217000.html[/URL] | |
Re: You could try using Applications.DoEvents();. That will force the form and all of its controls to be redrawn. | |
Re: Check this: [URL="http://www.codeproject.com/KB/database/sql_in_csharp.aspx"]http://www.codeproject.com/KB/database/sql_in_csharp.aspx[/URL] | |
Re: I don't really know any PHP, but I guess the problem really is on line 6. It says [I]$message=2"$phoneoff";[/I] while it should say [I]$message2="$phoneoff";[/I]. Am I right? |
The End.