www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Compiler and linker

↑ ↓ ← "C-Noob" <C-Noob Noob.com> writes:
hello,

Can we call the linker with the compiler ?
I want to compile my code and link my resources in same time.

Thanks.

C-Noob
Jun 24 2003
↑ ↓ "Walter" <walter digitalmars.com> writes:
"C-Noob" <C-Noob Noob.com> wrote in message
news:bd92ui$s13$1 digitaldaemon.com...
 hello,

 Can we call the linker with the compiler ?

Yes: dmc hello.obj will do the link.
 I want to compile my code and link my resources in same time.

 Thanks.

 C-Noob

Jun 24 2003
↑ ↓ C-Noob <C-Noob_member pathlink.com> writes:
In article <bd9s25$1mmg$2 digitaldaemon.com>, Walter says...
"C-Noob" <C-Noob Noob.com> wrote in message
news:bd92ui$s13$1 digitaldaemon.com...
 hello,

 Can we call the linker with the compiler ?

Yes: dmc hello.obj will do the link.
 I want to compile my code and link my resources in same time.

 Thanks.

 C-Noob


Ok thanks, Can we use a pragma directive with dmc to call the linker ? like : #pragma resource "myres.res" thanks. C-Noob
Jun 28 2003
↑ ↓ → "Walter" <walter digitalmars.com> writes:
"C-Noob" <C-Noob_member pathlink.com> wrote in message
news:bdjret$ljj$1 digitaldaemon.com...
 Can we use a pragma directive with dmc to call the linker ?
 like : #pragma resource "myres.res"

No, the resource files go on the linker command line after the .def file. See www.digitalmars.com/ctg/ctg.html and click on "Optlink" for command line syntax.
Jun 29 2003