Question: I have a simple "Hello World!" c program, named hello.c on my desktop:

```
#include <stdio.h>

int main() {
    printf("Hello world!\n");

    return 0;
}

```

I run the following commands. 

* I pre-process it with : *cpp hello.c > hello.i*
* I compile it with : *gcc -S hello.i*
* I assemble it with : *as -o hello.o hello.s*

All good so far. But, i'm unable to link it. I've tried, among other commands, these:

```
ld -o hello.exe hello.o
ld -o hello.exe hello.o -lgcc
ld -o hello.exe hello.o -nostdlib -lgcc

```

Nothing works. The link errors i get in every single case are : 

```
hello.o:hello.c:(.text+0x9): undefined reference to `__main'
hello.o:hello.c:(.text+0x15): undefined reference to `puts'

```

How can i link this assembled program hello.o in order to finally produce the executable program hello.exe? What am i missing? [Using Windows 8.1, Mingw version 0.6.2.] Thanks in advance.

Answer: 
Using the following as the datasource:

```
SELECT 3302540.8200 Number UNION
SELECT 748712.9600 UNION
SELECT 584879.2400 UNION
SELECT 20787.5300 UNION
SELECT 1338075.0000 UNION
SELECT 1000 UNION
SELECT 10123.20

```

You could use the following expression in your output table/Textbox:

```
=Format(Fields!Number.Value,"#,#.##")

```

Excel Output:

```
1,000
10,123.2
20,787.53
584,879.24
748,712.96
1,338,075
3,302,540.82

```
in your designed report in SSRS ,
type below in format section of your textBox 

#,0;(#,0)

it works exactly as what u want